Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ie.tcd.group2.network;
- public class JoinInformation {
- private String joinInformation;
- public JoinInformation(String gpsInformation){
- if(gpsInformation.charAt(0)!='<'){
- this.joinInformation = gpsInformation;
- }else{
- this.joinInformation=gpsInformation.substring(1, gpsInformation.length()-1);
- System.out.println(this.joinInformation);
- }
- }
- public String toString(){
- return "<"+ this.joinInformation+">";
- }
- public int getXPosition() {
- // TODO Auto-generated method stub
- return 0;
- }
- public String getPlayerType() {
- // TODO Auto-generated method stub
- return null;
- }
- }
Add Comment
Please, Sign In to add comment