Skip to content
Open

TA #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions cpham30.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


defaultTasks 'jar'

apply plugin: 'java'

dependencies {
compile files('lib/resources.jar')
}

jar {
manifest {
attributes 'Main-Class' : 'edu.gatech.oad.antlab.pkg1.AntLabMain',
'Class-Path' : '../../lib/resources.jar'

}
}
2 changes: 2 additions & 0 deletions readme.p5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Christopher Pham
cpham30@gatech.edu
8 changes: 7 additions & 1 deletion src/main/java/edu/gatech/oad/antlab/person/Person5.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ public Person5(String pname) {
*/
private String calc(String input) {
//Person 5 put your implementation here
return null;
String result = "";
for(int i = 2; i < input.length(); i++)
{
result = result + input.charAt(i);
}
result = result + input.charAt(0) + input.charAt(1);
return result;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/edu/gatech/oad/antlab/pkg1/AntLabMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public void printOutMessage() {
toPrint += p4.toString("lwang430");
//Person5 replace P4 with your name
//and gburdell5 with your gt id
Person5 p5 = new Person5("P5");
toPrint += p5.toString("gburdell5");
Person5 p5 = new Person5("Christopher Pham");
toPrint += p5.toString("cpham30");

System.out.println(toPrint);

Expand Down
1 change: 0 additions & 1 deletion useless.p5.txt

This file was deleted.