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

How do I write a program on java that allows a user to choose from a menu of options if the user does not select one of the choices on the menu have the program reprint the menu and ask the user to enter their selection again the program should continue to repeat the menu until the user has selected a valid option once a valid option has been selected the program should print the users selection
Write an application that prompt the user to enter a number to use as an array size, and
then attempt to declare an array using the entered size.
Java generates a NegativeArraySizeException if wou attempt to create an array with a
negative size, and a NumberFormatException if you atempt to create an array using a
non-numeric value for the size. Use catch block that executes if the array size is nonnumeric
or negative, displaying a message that indicates the array was not created.
If the array is created successfully, display an appropriate message and then prompt the
user to store values in the array. At the end of your program ask the user to enter the
index of the array to display the element value. Create a catch block that catches the
eventual ArrayIndexOutOfBoundsException, so if the user attempts to access an element
out of the range of the array display the message  Now you have gone so far!! .
& Flower Shop Ordering To Go – Create a flower shop application which deals in flower objects and use those flower objects in a bouquet which can then be sold. The flower object has a flower name, color, quantity. Adding a particular flower to a bouquet depends on the user choice. HINT: you should keep track of the number of objects and when you may need to order more flower from the store.
Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digital cameras, etc). Include data values that describe various attributes of the electronics, such as weight, cost, power usage, and the names of the manufacturers. Include methods that are named appropriately for each class and that print an appropriate message. Create a main driver class to instantiate and exercise several of the classes.
Write a java application that prints all even numbers from 2 to 50 with the aid specifications:
*start new line after every multiple of 20.
*use for loop.
& Write a Servlet that lets a user vote for his favorite food from a combo box or radio buttons (the user must be able to make multiple food selections per request).

• Store the favorite foods and the number of votes for each food.

• Display all foods and their number of votes in alphabetical order back to the user.

• Use database to store the data.
Write a Servlet that takes the user’s name and age from a form.

• Echo backs the name and age along with a message stating the price of movie tickets.
• The price is determined by the age passed to the JSP.

• If the age is greater than 62, the movie ticket price is $7.00.

• If the user is less than 10 years old, the price is $5.00.

• For everyone else, the price is $9.50
Write a java application that prints all even numbers from 2 to 50 with the aid of following specifiatiions start a new line after every multiple of 20 use for loop.
Q1: Write a Servlet that takes the user’s name and age from a form.
• Echo backs the name and age along with a message stating the price of movie tickets.
• The price is determined by the age passed to the JSP.
• If the age is greater than 62, the movie ticket price is $7.00.
• If the user is less than 10 years old, the price is $5.00.
• For everyone else, the price is $9.50
Q2: Write a Servlet that lets a user vote for his favorite food from a combo box or radio buttons (the user must be able to make multiple food selections per request).
• Store the favorite foods and the number of votes for each food.
• Display all foods and their number of votes in alphabetical order back to the user.
• Use database to store the data.
Note: Proper user authentication from database is required for performing above tasks.
I have completed my java programming.now I want to develop jar app for mobile phone.I googled it but not getting proper way.I did the basic thing of compling and then using -jar command to create compressed jar file.But this jar file( tictactoe.jar) is not working on my nokia cell showing error-invalid file.
plz I need help.
LATEST TUTORIALS
APPROVED BY CLIENTS