Guest User

Untitled

a guest
Jan 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. package ie.tcd.group2.network;
  2.  
  3. public class JoinInformation {
  4. private String joinInformation;
  5.  
  6. public JoinInformation(String gpsInformation){
  7. if(gpsInformation.charAt(0)!='<'){
  8. this.joinInformation = gpsInformation;
  9. }else{
  10. this.joinInformation=gpsInformation.substring(1, gpsInformation.length()-1);
  11. System.out.println(this.joinInformation);
  12. }
  13. }
  14. public String toString(){
  15. return "<"+ this.joinInformation+">";
  16. }
  17. public int getXPosition() {
  18. // TODO Auto-generated method stub
  19. return 0;
  20. }
  21. public String getPlayerType() {
  22. // TODO Auto-generated method stub
  23. return null;
  24. }
  25. }
Add Comment
Please, Sign In to add comment