Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- To change this template, choose Tools | Templates
- and open the template in the editor.
- */
- /**
- @author k.ip10
- */
- public class Students {
- private static int iD, yearGroup;
- private static String studentName, address, tutor;
- public static void studentID (int s)
- {
- iD = s;
- }
- public static void Name (String n)
- {
- studentName = n;
- }
- public static void Address (String a)
- {
- address = a;
- }
- public static void Tutor (String t)
- {
- tutor = t;
- }
- public static void year(int y)
- {
- yearGroup = y;
- }
- public static int getID ()
- {
- return iD;
- }
- public static String getName()
- {
- return studentName;
- }
- public static String getAddress()
- {
- return address;
- }
- public static String getTutorGroup()
- {
- return tutor;
- }
- public static int getYear()
- {
- return yearGroup;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement