Question: Create a java project that contains two files: 1. The first one implement a class called Student that define three private variables: code (integer), name
Create a java project that contains two files:
1. The first one implement a class called Student that define three private variables: code (integer), name (String) and mark (integer). The Student class implement a constructor that takes three arguments. All getters and setters are supposed to be implemented.
2. The second one implement a Test class that create an array of five student (user is asked to enter the users information), print all the students information as is illustrated in the figure below.
Explain the code !!

run: es Enter the Student Code 1 Enter the Student Name stal Enter the Student Mark 65 Enter the Student Code Enter the Student Name std2 Enter the Student Mark Enter the Student Code 3 Enter the Student Name std 3 Enter the Student Mark 56 Enter the Student Code 4 Enter the Student Name std4 Enter the Student Mark 81 Enter the Student Code 5 Enter the Student Name stds Enter the Student Mark 66 Students' info: Code: 1, Name: stdl, Mark: 65 Code: 2, Name: std2, Mark: 74 Code: 3, Name: std3, Mark: 56 Code: 4, Name: std, Mark: 81 Code: 5, Name: stds, Mark: 66 BUILD SUCCESSFUL (total time: 27 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
