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

In a linked list memory allocated for the nodes is sequential. True/False

A singly linked list can be traversed in either direction. True/False

In a linked list the nodes are always inserted either in the beginning or at the end because a linked list is not a random access data structure. True/False

The reference variable pointing to the first node of linked list should be used to traverse the list. True/False
Prompt the user to enter data for 10 employees.If the user try to enter more than 10 employees,it will be an error.For each employee,the user will enter their last name(1 word only),what time they started work today(first ask for the hour,then the minute),and what time they finished work today(first ask for the hour,then the minute).For example,if the person started work at 2.20PM,the user would enter 14 for the hour & 20 for the minute.Note that the time format to be used is 24hours format.Required to validate the data entered correctly,that the employee finished work after they started, & that both times entered are for the same day.The program is to determine how many hours each employee worked that day.It will output a nicely formatted report listing all of the employees along with the amount of time they worked(listed as hours & minutes).The program should output the average amount of time worked.(1 hour-$12,continuously 4 hours of working-additional $10).Required programming style with modules & arrays.
Happy Numbers.. Java Program

A happy number is built by adding the squares of its digits, doing this permanently, the numbers will end in 1 or 4.

if a positive integer ends with 1, then it is a happy number.
the first few happy numbers are: 1,7,10,13,19,23,28 ...

solution : 13 = 1^2 +3 ^2 = 1+9 = 10
10 = 1^2 + 0+2 = 1+0 = 1

how many positive happy numbers are there in less than 300,000?
How to add the rows in pascal's triangle without using an array?
the user should input a row number and the output will be the sum above the input row and the row below the input row.

Assume that the row number is up to 30.

Sample Input:

Enter row no: 4

Output:

Sum of numbers in row 5 is 32.
Sum of all numbers above 4 is 15.
In a linked list the order of the elements is determined by the order in which the nodes were created to store the elements. TRUE/FALSE

The reference variable pointing to the first node of a linked list should be used to traverse the list. TRUE/FALSE

A singly linked list can be traversed in either direction. TRUE/FALSE

In a linked list memory allocated for the nodes is sequential. TRUE/FALSE

In a linked list the nodes are always inserted either in the beginning or at the end because a linked list is not a random access data structure. TRUE/FALSE
Program in java to accept 10 names and their corresponding phone number in two 1 dim array. Then accept the name from the user display the corresponding phone number. If the name is not present in the array then display the corresponding array. Please help.
ArrayList<Double>a;
a=new ArrayList<Float>();

What is the error in the code segment?
write a program to create a class called player.the contents of the class are player name,total runs score,number of matches played and average write suitable member method to calculate the average of a player.
display the information of the player whose average is more than 75%
I want to create a reusable component that would change the background color of an interface after a specific interval,how do I go about that?
Write the body of method called maxFrequency:

public static char maxFrequency(String s){

which takes a string (length >=1) as parameter (containing characters from a to z; only small caps), calculates frequencies of characters in the string and returns the character with maximum frequency. For example, if the parameter string is "abcabcabca", the method returns 'a'.
LATEST TUTORIALS
APPROVED BY CLIENTS