Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.  
  2. public class entries {
  3.  
  4.     private String time;
  5.     private String content;
  6.    
  7.  
  8.     // Entity Class Constructor by using this.name means use THIS object that we are now using.
  9.      
  10.      public entries(String entryTime,String entryContents ) {
  11.         this.time=entryTime;
  12.         this.content=entryContents;
  13.        
  14.     }
  15.              
  16.      // Accessory Methods
  17.      
  18.              public String getTime(){return this.time;}
  19.              public String getContents(int index){return this.content;}
  20.              
  21.            
  22.            
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement