Skip to content
Open
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
287 changes: 287 additions & 0 deletions .metadata/.log

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
*
* @author //Put your first and last name here
*
*
* Assignment Instructions:
* Write the following constructors and methods:
* - You() : Sets all private global variables to your information
* - String getFullName() : Returns a String of your first and last name with a space in between
* - String setFavoriteAnimal(String animal) : Sets favoriteAnimal to animal and returns it
* - int happyBirthday() : Prints out "Happy Birthday!", increases age by 1, and returns it
*
* Submission Instructions:
* - Save your saved work on Eclipse - your workspace should be the file location of the cloned repo
* - In GitHub Desktop, add your summary and commit your changes
* - Then push your commits to GitHub
* - Check your repo on GitHub.com to make sure the files are as you intend
* - Add achiu-frhsd as a collaborator
*
*/
public class You{

private String firstName;
private String lastName;
private String favoriteAnimal;
private int age;

// Write your code here

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
*
* @author //Put your first and last name here
*
*
* Assignment Instructions:
* Write the following constructors and methods:
* - You() : Sets all private global variables to your information
* - String getFullName() : Returns a String of your first and last name with a space in between
* - String setFavoriteAnimal(String animal) : Sets favoriteAnimal to animal and returns it
* - int happyBirthday() : Prints out "Happy Birthday!", increases age by 1, and returns it
*
* Submission Instructions:
* - Save your saved work on Eclipse - your workspace should be the file location of the cloned repo
* - In GitHub Desktop, add your summary and commit your changes
* - Then push your commits to GitHub
* - Check your repo on GitHub.com to make sure the files are as you intend
* - Add achiu-frhsd as a collaborator
*
*/
public class You{

private String firstName;
private String lastName;
private String favoriteAnimal;
private int age;

public You(String input1, String input2, String input3, int num){
firstName = input1;
lastName = input2;
favoriteAnimal = input3;
age = num;
}

public String getFullName(){
return firstName + " " + lastName;
}

public String setFavoriteAnimal(String input){
favoriteAnimal = input;
return favoriteAnimal;
}

public int happyBirthday(){
System.out.println("Happy Birthday!");
age++;
return age;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .metadata/.plugins/org.eclipse.core.resources/1.snap
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.cdt.debug.core.cDebug.default_source_containers=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<sourceLookupDirector>\r\n<sourceContainers duplicates\="false">\r\n<container memento\="AbsolutePath" typeId\="org.eclipse.cdt.debug.core.containerType.absolutePath"/>\r\n<container memento\="programRelativePath" typeId\="org.eclipse.cdt.debug.core.containerType.programRelativePath"/>\r\n<container memento\="&lt;?xml version\=&quot;1.0&quot; encoding\=&quot;UTF-8&quot; standalone\=&quot;no&quot;?&gt;&\#13;&\#10;&lt;project referencedProjects\=&quot;true&quot;/&gt;&\#13;&\#10;" typeId\="org.eclipse.cdt.debug.core.containerType.project"/>\r\n</sourceContainers>\r\n</sourceLookupDirector>\r\n
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1559753074489">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1559753074489" name\="jre1.8.0_131" path\="C\:\\Program Files\\Java\\jre1.8.0_131"/>\r\n</vmType>\r\n</vmSettings>\r\n
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1560360827430" defaultVMConnector\="">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1559753074489" name\="jre1.8.0_131" path\="C\:\\Program Files\\Java\\jre1.8.0_131"/>\r\n<vm id\="1560360827430" javadocURL\="https\://docs.oracle.com/javase/8/docs/api/" name\="jre1.8.0_91" path\="C\:\\Program Files\\Java\\jre1.8.0_91"/>\r\n</vmType>\r\n</vmSettings>\r\n
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
activeuserprofiles=FB-ACHIU;Team
eclipse.preferences.version=1
org.eclipse.rse.systemtype.local.systemType.defaultUserId=Achiu
useridperkey=FB-ACHIU.Local\=Achiu;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
showIntro=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
eclipse.preferences.version=1
fontPropagated=true
org.eclipse.jface.textfont=1|Consolas|10.0|0|WINDOWS|1|0|0|0|0|0|0|0|0|1|0|0|0|0|Consolas;
org.eclipse.wst.jsdt.ui.editor.tab.width=
org.eclipse.wst.jsdt.ui.formatterprofiles.version=11
org.eclipse.wst.jsdt.ui.javadoclocations.migrated=true
tabWidthPropagated=true
useAnnotationsPrefPage=true
useQuickDiffPrefPage=true
Loading