Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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

Write a program composed of an Interface class Students.java having the necessary
variable declarations and setters and getters methods to represent the following
information for students: name, surname, yearClass, course, GPA. Define the interface
class in OneStudent.java class. Then write an Abstract class Deprtaments.java that its
constructor will instantiate an ArrayList myStudents to store all Students objects. This
class should also have a setter and getter method for handling the arraylist. Then create
the ComputerScience.java and ComputerEngineering.java classes that will extend the
Departments abstract class. Finally, create the University.java class that will prompt the
user to choose from a menu one of the following:
 Create a new student and based on his course add him into the appropriate
department. (Tip: each department will have an arraylist for their student, each
time a new student is to be entered, get the arraylist, add the student and the set
the arraylist back to the deprtment.)
 Choose a department to display all its students’ information.
 Choose a department to display the average GPA of its students.
 Find a student based on his name and surname. Display all student’s info
otherwise display that the student does not exist.
 Choose a classYear to display all students on that year from both departments,
separating them based on their department.
 Exit program
How do I make a user enter values into an array?
Write a class named Rectangle, which represents different rectangles. The private data fields are width, length, area and color. Use double for width and length and String for color. The methods are getWidth(), getLenght(), getColor() and findArea(). Use a class variable for color.
Include the above class in a program that uses it.
Create a program containing and showing random information about name, ID
and status (year, current and cumulative performance) of students from a file
students.txt. This program should process a list of 20 students, filtering those of
them having a name beginning with the same letter (prompt the user to choose
one), who are third year students and have current as well as cumulative
performance above the average of this filtered list. Sort the filtered users
according to their user ID (you can use bubble sort etc). Save the
results in file studentsFilter.txt.
For this task you will create a Subject class, whose instances will represent the subjects for study at a university. A subject will have a name, just a String, and a subject code, which is a six-character String. The first three characters of a subject code are alphabetic and the last three are numeric. The first three characters define the subject's discipline area. A subject code must be unique.

You will also write a TestSubject class to test the use of your Subject class. In particular this will maintain an array of subjects. In order to manage the uniqueness of the subject codes, your program will need to display information about existing subject codes as well as checking that any new subject code supplied by the user is not the same as any existing subject code.

The following state and functionality should be provided for the Subject class:

Two fields will hold the subject’s name and the six-character subject code.
A constructor will allow a name and a new, validated subject code to be provid
I want to fetch data from database to jsp Page. Whenever we type a word relating words starting with letter typed should be filled automatically by fetching from the DB like a drop down.
Define a new exception called “NotMemberException”. The exception must be thrown if the registration number entered by the user does not exist in the list of StudInfo. Your program should catch the exception as follows. It should first try to see if the number before and after the one entered exists. If so, it informs the user that they probably made a typo and provides them the name of the found student. If neither is found it must simply inform the user that such registration number does not exist.
I`ve created my first webapplication. I set up my webserver (tomcat+apache2) and tried to deploy the app on it. When I tested the app it worked fine with my test environment, but when created the war and deployed it the following error (exception) showed up:

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 14 in the generated java file Only a type can be imported. bitcoin.BitcoinHandler resolves to a package

An error occurred at line: 16 in the jsp file: /Balance.jsp BitcoinHandler cannot be resolved 13: double yourcoins=0.0; 14: Random rand=new Random(); 15:
16: balance=new Double(BitcoinHandler.getBalance("give")); 17:
18:
19: if(balance>2.5)

What can I do about this.. I tried different IDEs to comiple it best for my webserver.. !??
write java applications that print the following pyramid using an array.
User must enter the number of start to displays.
Example: Please enter the number of stat to displays: 6.
*
**
***
****
*****
******
write a java application that prints all even numbers from 2 to 50, with the aid of the following specification: start a new line after every multiple of 20.
Use for loop.
Save this program as evennums.java
LATEST TUTORIALS
APPROVED BY CLIENTS