forked from serkanhelvacioglu/Java-IAU
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStudent.java
More file actions
34 lines (30 loc) · 711 Bytes
/
Student.java
File metadata and controls
34 lines (30 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package workingexampleweek6;
import javax.swing.JOptionPane;
public class Student {
String name,surname,departmant;
int number;
public int getNumber(){
return number;
}
public void setNumber(){
this.number=Integer.parseInt(JOptionPane.showInputDialog("Enter Number"));
}
public String getname(){
return name;
}
public void setname(){
this.name=JOptionPane.showInputDialog("Enter Name");
}
public String getdepartmant(){
return departmant;
}
public void setdepartmant(){
this.departmant=JOptionPane.showInputDialog("Enter Departmant");
}
public String getsurname(){
return surname;
}
public void setsurname(){
this.surname=JOptionPane.showInputDialog("Enter Surname");
}
}