-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPakUni.java
50 lines (41 loc) · 1022 Bytes
/
PakUni.java
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
public class PakUni {
String name;
String Word_rank;
String Asia_rank;
String Pak_rank;
String address;
int num_of_publish;
PakUni(){
}
PakUni(String name , String wrank , String Arank , String Prank , String loc,int pub ){
this.name=name;
this.Word_rank=wrank;
this.Asia_rank=Arank;
this.Pak_rank=Prank;
this.address=loc;
this.num_of_publish=pub;
}
// convert object to String
public String toString (){
return name + " "+ Word_rank+" "+Asia_rank+" "+Pak_rank+" "+address+" "+num_of_publish+" ";
}
// getter to set the value
public String getName() {
return name;
}
public String getWord_rank() {
return Word_rank;
}
public String getAsia_rank() {
return Asia_rank;
}
public String getPak_rank() {
return Pak_rank;
}
public String getaddress() {
return address;
}
public int getNum_of_publish() {
return num_of_publish;
}
}