-
Notifications
You must be signed in to change notification settings - Fork 2
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 9e0dfce
Showing
18 changed files
with
462 additions
and
0 deletions.
There are no files selected for viewing
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>m4</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
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 take the string | ||
* input and return its characters rotated | ||
* 1 position. | ||
* given "gtg123b" it should return | ||
* "tg123bg". | ||
* | ||
* @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 | ||
* 3 positions. | ||
* given "gtg123b" it should return | ||
* "123bgtg". | ||
* | ||
* @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.