Walkerbo

Faculty - FacultyList - return of the bad

Aug 20th, 2013
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //   Faculty to string  ---------------------------------------------------------------------------
  2.         public String toString() {
  3.         return "Faculty [FacultyName=" + FacultyName + ", Facultydescription="
  4.                 + FacultyDescription + ", FacultyPointCap=" + FacultyPointCap
  5.                 + "    ******   test faculty      *********]";
  6.     }
  7.  
  8. //    Start  -------------------------------------------------------------------------
  9.             Faculty Fac = (Faculty)FacultyList.CurrentFacultyList.get(QQ);
  10.            
  11.             String FacS = (String)Fac.toString();  // gives the memory location
  12.             String FacN = (String)Fac.getFacultyName();   // returns null
  13.             String FacD = (String)Fac.getFacultyDescription(); // returns null
  14.             int FacP = (int)Fac.getFacultyPointCap(); // returns null
  15.  
  16.  
  17. //  Console output ------------------------------------------------
  18. 1  -  Faculty Object = Faculty [FacultyName=null, Facultydescription=null, FacultyPointCap=0    ******   test faculty      *********]  -  Faculty Name = null  -  Faculty Description = null  -  Faculty PointCap = 0
  19. 2  -  Faculty Object = Faculty [FacultyName=null, Facultydescription=null, FacultyPointCap=0    ******   test faculty      *********]  -  Faculty Name = null  -  Faculty Description = null  -  Faculty PointCap = 0
RAW Paste Data