Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
group2-s2-9831067
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9831067
group2-s2-9831067
Commits
5ff13b14
Commit
5ff13b14
authored
Feb 28, 2020
by
9831067
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete Student.java
parent
384608fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
91 deletions
+0
-91
Student.java
group2-s2-9831067/Student.java
+0
-91
No files found.
group2-s2-9831067/Student.java
deleted
100644 → 0
View file @
384608fd
public
class
Student
{
// the student’s first name
private
String
firstName
;
// the student’s last name
private
String
lastName
;
// the student ID
private
String
id
;
//the grade
private
int
grade
;
/**
* Set a name of student.
* @param sName student
*/
public
void
setName
(
String
str
)
{
firstName
=
str
;
}
/**
* Set a lastName of student.
* @param sLastName student
*/
public
void
setLastName
(
String
str
)
{
lastName
=
str
;
}
/**
* Set a id of student.
* @param sId student
*/
public
void
setId
(
String
str
)
{
id
=
str
;
}
public
void
print
()
{
System
.
out
.
println
(
"first name is: "
+
firstName
+
" last name is: "
+
lastName
+
"id is : "
+
id
+
"grade is: "
+
grade
);
}
/**
* Set a grade of student.
* @param sGrade student
*/
public
void
setGrade
(
int
s
)
{
grade
=
s
;
}
/**
* get the first name of student
* @return firstName field
*/
public
String
getLastName
()
{
return
lastName
;
}
/**
* get the last name of student
* @return lastName field
*/
public
String
getfirstName
()
{
return
firstName
;
}
/**
* get the id of student
* @return id field
*/
public
String
getId
()
{
return
id
;
}
/**
* get the grade of student
* @return grade field
*/
public
int
getGrade
()
{
return
grade
;
}
/**
* Create a new student with a given name and ID number.
*
* @param fName first name of student
* @param lname last name of student
* @param sID student ID
*/
public
Student
(
String
fName
,
String
lname
,
String
sID
){
firstName
=
fName
;
lastName
=
lname
;
id
=
sID
;
grade
=
0
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment