Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
evachenyr committed Sep 6, 2018
0 parents commit 6e3dd33
Show file tree
Hide file tree
Showing 20 changed files with 473 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .idea/libraries/resources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added lib/resources.jar
Binary file not shown.
49 changes: 49 additions & 0 deletions src/main/java/edu/gatech/oad/antlab/person/Person1.java
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);
}

}
47 changes: 47 additions & 0 deletions src/main/java/edu/gatech/oad/antlab/person/Person2.java
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);
}
}
48 changes: 48 additions & 0 deletions src/main/java/edu/gatech/oad/antlab/person/Person3.java
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;
}
}
50 changes: 50 additions & 0 deletions src/main/java/edu/gatech/oad/antlab/person/Person4.java
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);
}

}

49 changes: 49 additions & 0 deletions src/main/java/edu/gatech/oad/antlab/person/Person5.java
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);
}

}
23 changes: 23 additions & 0 deletions src/main/java/edu/gatech/oad/antlab/pkg1/AntLab11.java
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!";
}

}
21 changes: 21 additions & 0 deletions src/main/java/edu/gatech/oad/antlab/pkg1/AntLab12.java
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";
}

}
Loading

0 comments on commit 6e3dd33

Please sign in to comment.