forked from evachenyr/M2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6e3dd33
Showing
20 changed files
with
473 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package edu.gatech.oad.antlab.person; | ||
|
||
/** | ||
* A simple class for person 1 | ||
* returns their name and a | ||
* modified string | ||
* | ||
* @author Bob | ||
* @version 1.1 | ||
*/ | ||
public class Person1 { | ||
/** Holds the persons real name */ | ||
private String name; | ||
/** | ||
* The constructor, takes in the persons | ||
* name | ||
* @param pname the person's real name | ||
*/ | ||
public Person1(String pname) { | ||
name = pname; | ||
} | ||
/** | ||
* This method should take the string | ||
* input and return its characters rotated | ||
* 2 positions. | ||
* given "gtg123b" it should return | ||
* "g123bgt". | ||
* | ||
* @param input the string to be modified | ||
* @return the modified string | ||
*/ | ||
private String calc(String input) { | ||
//Person 1 put your implementation here | ||
return null; | ||
} | ||
|
||
/** | ||
* Return a string rep of this object | ||
* that varies with an input string | ||
* | ||
* @param input the varying string | ||
* @return the string representing the | ||
* object | ||
*/ | ||
public String toString(String input) { | ||
return name + calc(input); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package edu.gatech.oad.antlab.person; | ||
|
||
/** | ||
* A simple class for person 2 | ||
* returns their name and a | ||
* modified string | ||
* | ||
* @author Bob | ||
* @version 1.1 | ||
*/ | ||
public class Person2 { | ||
/** Holds the persons real name */ | ||
private String name; | ||
/** | ||
* The constructor, takes in the persons | ||
* name | ||
* @param pname the person's real name | ||
*/ | ||
public Person2(String pname) { | ||
name = pname; | ||
} | ||
/** | ||
* This method should take the string | ||
* input and return its characters in | ||
* random order. | ||
* given "gtg123b" it should return | ||
* something like "g3tb1g2". | ||
* | ||
* @param input the string to be modified | ||
* @return the modified string | ||
*/ | ||
private String calc(String input) { | ||
//Person 2 put your implementation here | ||
return null; | ||
} | ||
/** | ||
* Return a string rep of this object | ||
* that varies with an input string | ||
* | ||
* @param input the varying string | ||
* @return the string representing the | ||
* object | ||
*/ | ||
public String toString(String input) { | ||
return name + calc(input); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package edu.gatech.oad.antlab.person; | ||
/** | ||
* A simple class for person 3 | ||
* returns their name and a | ||
* reversed string | ||
* | ||
* @author Bob | ||
* @version 1.1 | ||
*/ | ||
public class Person3 { | ||
/** Holds the persons real name */ | ||
private String name; | ||
|
||
/** | ||
* The constructor, takes in the persons | ||
* name | ||
* @param pname the person's real name | ||
*/ | ||
public Person3(String pname){ | ||
name = pname; | ||
} | ||
|
||
/** | ||
* Return a string rep of this object | ||
* that varies with an input string | ||
* | ||
* @param input the varying string | ||
* @return the string representing the | ||
* object | ||
*/ | ||
public String toString(String input) { | ||
return name + calc(input); | ||
} | ||
|
||
/** | ||
* This method should take the string | ||
* input and return its reverse. | ||
* given "gtg123b" it should return | ||
* b321gtg. | ||
* | ||
* @param input the string to be reversed | ||
* @return the reversed string | ||
*/ | ||
private String calc(String input) { | ||
//Person 3 put your implementation here | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package edu.gatech.oad.antlab.person; | ||
|
||
/** | ||
* A simple class for person 4 | ||
* returns their name and a | ||
* modified string | ||
* | ||
* @author Bob | ||
* @version 1.1 | ||
*/ | ||
public class Person4 { | ||
/** Holds the persons real name */ | ||
private String name; | ||
/** | ||
* The constructor, takes in the persons | ||
* name | ||
* @param pname the person's real name | ||
*/ | ||
public Person4(String pname) { | ||
name = pname; | ||
} | ||
/** | ||
* This method should return a string | ||
* where each character is 1 greater | ||
* than its previous value. So | ||
* given "abc123" it should return | ||
* "bcd234". | ||
* | ||
* @param input the string to be modified | ||
* @return the modified string | ||
*/ | ||
private String calc(String input) { | ||
//Person 4 put your implementation here | ||
return null; | ||
} | ||
|
||
/** | ||
* Return a string rep of this object | ||
* that varies with an input string | ||
* | ||
* @param input the varying string | ||
* @return the string representing the | ||
* object | ||
*/ | ||
public String toString(String input) { | ||
return name + calc(input); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package edu.gatech.oad.antlab.person; | ||
|
||
/** | ||
* A simple class for person 5 | ||
* returns their name and a | ||
* modified string | ||
* | ||
* @author Bob | ||
* @version 1.1 | ||
*/ | ||
public class Person5 { | ||
/** Holds the persons real name */ | ||
private String name; | ||
/** | ||
* The constructor, takes in the persons | ||
* name | ||
* @param pname the person's real name | ||
*/ | ||
public Person5(String pname) { | ||
name = pname; | ||
} | ||
/** | ||
* This method should take the string | ||
* input and return its characters rotated | ||
* 2 positions. | ||
* given "gtg123b" it should return | ||
* "g123bgt". | ||
* | ||
* @param input the string to be modified | ||
* @return the modified string | ||
*/ | ||
private String calc(String input) { | ||
//Person 5 put your implementation here | ||
return null; | ||
} | ||
|
||
/** | ||
* Return a string rep of this object | ||
* that varies with an input string | ||
* | ||
* @param input the varying string | ||
* @return the string representing the | ||
* object | ||
*/ | ||
public String toString(String input) { | ||
return name + calc(input); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package edu.gatech.oad.antlab.pkg1; | ||
|
||
|
||
|
||
/** | ||
* CS2340 Ant Lab | ||
* | ||
* AntLab11.java helper class | ||
* @author Robert | ||
* @version 1.0 | ||
*/ | ||
public class AntLab11 { | ||
|
||
|
||
/** | ||
* retrieves a pre-stored string message | ||
* @return the string | ||
*/ | ||
public String getMessage() { | ||
return "Congrats!"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package edu.gatech.oad.antlab.pkg1; | ||
|
||
|
||
|
||
/** | ||
* CS2335 Ant Lab | ||
* | ||
* AntLab12.java helper class | ||
*/ | ||
public class AntLab12 { | ||
|
||
|
||
/** | ||
* retrieves a pre-stored string message | ||
* @return the string | ||
*/ | ||
public String getMessage() { | ||
return " You"; | ||
} | ||
|
||
} |
Oops, something went wrong.