Skip to content

Commit

Permalink
Merge pull request evachenyr#6 from evachenyr/Catherine
Browse files Browse the repository at this point in the history
Person1.java
  • Loading branch information
catherinehl authored Sep 6, 2018
2 parents bfa5f5d + f8eef62 commit 5999dee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/edu/gatech/oad/antlab/person/Person1.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* returns their name and a
* modified string
*
* @author Bob
* @author Catherine
* @version 1.1
*/
public class Person1 {
Expand All @@ -30,8 +30,10 @@ public Person1(String pname) {
* @return the modified string
*/
private String calc(String input) {
//Person 1 put your implementation here
return null;

String a = input.substring(input.length() - 2, input.length());
String b = input.substring(0, input.length() - 2);
return a + b;
}

/**
Expand Down

0 comments on commit 5999dee

Please sign in to comment.