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;
	}
}

@@ -115,22 +115,19 @@
 d string
- 
 %0A *
-  
 %0A *  @au
@@ -217,18 +217,16 @@
  name */
-  
 %0A%09privat
@@ -240,18 +240,17 @@
 g name;%0A
-%09
 %0A
+
 %09/**%0A%09 *
@@ -389,26 +389,25 @@
 = pname;%0A%09%7D%0A
-%09
 %0A
+
 %09/**%0A%09 * Ret
@@ -554,17 +554,16 @@
 ting the
- 
 %0A%09 *    
@@ -656,10 +656,9 @@
 %0A%09%7D%0A
-%09
 %0A
+
 %09/**
@@ -909,49 +909,139 @@
 %0A%09  
-//Person 3 put your implementation here%0A%09
+String result = %22%22;%0A        for (int i=input.length()-1; i%3E=0; i--) %7B%0A            result = result + input.charAt(i);%0A        %7D%0A    
   re
@@ -1049,12 +1049,14 @@
 urn 
-null
+result
 ;%0A%09%7D

update person 3