-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathogrenci.java
More file actions
70 lines (64 loc) · 1.65 KB
/
ogrenci.java
File metadata and controls
70 lines (64 loc) · 1.65 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import java.util.ArrayList;
public class ogrenci {
public static String Sehir;
private String ad;
private String soyad;
private int dogumYil;
private String okulNo;
private ArrayList<String>Dersler ;//=new ArrayList<>();
public ogrenci() {
}
public ogrenci(String ad,String soyad,int dogumYil,String okulNo,ArrayList dersler){
this.ad=ad;
this.soyad=soyad;
this.okulNo=okulNo;
this.Dersler=dersler;
this.dogumYil=dogumYil;
}
public static void setSehir(String okulAdi){
ogrenci.Sehir=okulAdi;
}
public static String getSehir(){
return Sehir;
}
public void setAd(String ad){
this.ad=ad;
}
public String getAd(){
return ad;
}
public void setSoyad(String soyad){
this.soyad=soyad;
}
public String getSoyad(){
return soyad;
}
public void setDogumYil(int yil){
dogumYil=yil;
}
public int getDogumYil(){
return dogumYil;
}
public void setOkulNo(String no){
okulNo=no;
}
public String getOkulNo(){
return okulNo;
}
public void setDersler(ArrayList<String>x){
this.Dersler=x;
}
public ArrayList<String>getDersler(){
return Dersler;
}
@Override
public String toString() {
return "ogrenci{" +
"ad='" + ad + '\'' +
", soyad='" + soyad + '\'' +
", dogumYil=" + dogumYil +
", okulNo='" + okulNo + '\'' +
", Dersler=" + Dersler +
'}';
}
}