54 635
Assignments Done
Successfully Done
In November 2017
Your physics homework can be a real challenge, and the due date can be really close — feel free to use our assistance and get the desired result.
Be sure that math assignments completed by our experts will be error-free and done according to your instructions specified in the submitted order form.
Our experts will gladly share their knowledge and help you with programming homework. Keep up with the world’s newest programming trends.

Java | JSP | JSF Answers

1 094Questions:

844Free Answers by our Experts:

Ask Your question

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 Java program to
• create a new array list, add some colors (string) and print out the collection.
• insert an element into the array list at the first position.
• retrieve an element (at a specified index) from a given array list.
• update specific array element by given element.
Write a servlet that snoops all the information about the current session. Make a “registration” form that collects a first name, last name, and email address. Send the data to a servlet that displays it. Next, modify the servlet to use a default value in form(or give an error message) if the user omits any of the three required parameters.
How can the general tree (a b c d e f g) be represented as a binary tree with left=child, right=sibling?
public class Polynomial {

private static class TermNode{
private double coefficient;
private int exponent;
private TermNode next;

public TermNode(int exp, double coeff, TermNode nextTerm )
coefficient= coeff;
exponent = exp;
next = nextTerm;
private TermNode first;

public Polynomial() {
first = new TermNode(0,0, null);

public Polynomial(double a0)
first = new TermNode(0,a0,null);

public Polynomial(Polynomial p)
first = new TermNode(p.first.exponent, p.first.coefficient, p.first.next);

public void add_to_coef(double amount, int exponent) {
first = new Termnode(

public String toString() {

return s;

This is showing errors I am not able to implement it properly
Write a servlet that lets a user vote for his favorite food from a combo box or radio Buttons . Store the favorite foods and the number of votes for each food. Please note that a user from one IP address can vote only once. Display all foods and their number of votes in alphabetical order back to the user. Use an appropriate Collection class or Map class to store the data.
( Date Class) Create a class called Date that includes three instance variablesa month (type int ),
a day (type int ) and a year (type int ). Provide a constructor that initializes the three instance
variables and assumes that the values provided are correct. Provide a set and a get method for each
instance variable. Provide a method displayDate that displays the month, day and year separated
by forward slashes ( / ). Write a test application named DateTest that demonstrates class Date s
(Employee Class) Create a class called Employee that includes three instance variablesa first name
(type String ), a last name (type String ) and a monthly salary ( double ). Provide a constructor
that initializes the three instance variables. Provide a set and a get method for each instance
variable. If the monthly salary is not positive, do not set its value. Write a test application named
EmployeeTest that demonstrates class Employee s capabilities. Create two Employee objects and
display each objects yearly salary. Then give each Employee a 10% raise and display each Employee
s yearly salary again
Every positive integer greater than 1 can be expressed as a product of prime numbers. This
factorization is unique and is called the prime factorization.For example, the number 60 can be
decomposed into the factors 2 ∗ 2 ∗ 3 ∗ 5, each of which is prime. Note that the same prime can
appear more than once in the factorization. Write a program to display the prime factorization of
a number n e.g. if a user enter enter 60 as an input then program should print 2 ∗ 2 ∗ 3 ∗ 5 as an
Write a program that reads in a list of integers from the user until the user enters the value 0 as
a sentinel. When the sentinel appears, your program should display the largest and second largest
value in the list, e.g. if user enter values 13, 17, 34, 19, 33,0 then program output should say the
largest value was 34 and second largest value was 33. You should also make sure that the program
works correctly if all the input values are negative. not using arrays