Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Faculty to string ---------------------------------------------------------------------------
- public String toString() {
- return "Faculty [FacultyName=" + FacultyName + ", Facultydescription="
- + FacultyDescription + ", FacultyPointCap=" + FacultyPointCap
- + " ****** test faculty *********]";
- }
- // Start -------------------------------------------------------------------------
- Faculty Fac = (Faculty)FacultyList.CurrentFacultyList.get(QQ);
- String FacS = (String)Fac.toString(); // gives the memory location
- String FacN = (String)Fac.getFacultyName(); // returns null
- String FacD = (String)Fac.getFacultyDescription(); // returns null
- int FacP = (int)Fac.getFacultyPointCap(); // returns null
- // Console output ------------------------------------------------
- 1 - Faculty Object = Faculty [FacultyName=null, Facultydescription=null, FacultyPointCap=0 ****** test faculty *********] - Faculty Name = null - Faculty Description = null - Faculty PointCap = 0
- 2 - Faculty Object = Faculty [FacultyName=null, Facultydescription=null, FacultyPointCap=0 ****** test faculty *********] - Faculty Name = null - Faculty Description = null - Faculty PointCap = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement