Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program in Java to create two SDA to store names and marks of 25 students then display the name of the students as per their marks in descending order.

Write a program to create an array in order to store 30 numbers. Then display the highest number and second highest number present in it using bubble sorting.


Write a program using for loop statement that will display a series of number in ascending and descending order and it will also display the odd and even numbers.



Note: Use scanner and for loop statement



Sample output:




Enter a number: 15



Number in ASCENDING orders


1


2


3


4


5


6


7


8


9


10


11


12


13


14


15



Number in DESCENDING orders


15


14


13


12


11


10


9


8


7


6


5


4


3


2


1



EVEN Number


2


4


6


8


10


12


14



ODD Number


1


3


5


7


9


11


13


15



In a school students stand in assembly. But we are arrange them height wise.



So print the indexes of wrong positions.



Sample Input:



You are given an array A having N integers which represents the assembly line.Each integer represents the height of a student.print the indexes of all the students who stand at wrong position in the line.



input; 9--------denotes N



11 8 4 26 7 9 2 16 1 ------denotes array A



output:0 1 3 4 6 8




Write a program to store 30 numbers in an array. Then display those numbers in descending order using bubble sorting with a condition that maximum 5 numbers will appear in one line.

Write a program in Java to store 30 numbers in an array then display those numbers in descending order with a condition that maximum 5 numbers will appear in one line.

Write a program to store 25 numbers in an array. Then display those numbers divisible by 5 only in descending order using bubble sorting & also display how many such numbers found.


Write a program to store 15 numbers in an array. Then display all negative numbers in ascending order using bubble sorting.


Write a program to store 15 numbers in an array. Then display all two digits number in ascending order using bubble sorting and also display how many such numbers found.


Given an input string s and a pattern p, implement regular expression matching with support for '.' and '*' where:



'.' Matches any single character.​​​​


'*' Matches zero or more of the preceding element.


The matching should cover the entire input string (not partial).

LATEST TUTORIALS
APPROVED BY CLIENTS