This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package OOGreeting; | |
//Objectr Oriented way | |
public class Greeter { | |
public void greet(Greeting greeting) { | |
greeting.perform(); | |
} | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="Encoding" addBOMForNewFiles="with NO BOM" /> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phrase = "Geoff Zoref"; | |
print(phrase.replace("Geoff", "Amanda")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class ChoHanMain { | |
public static void main(String[] args) { | |
final int MAX = 5; | |
String player1Name; | |
String player2Name; | |
Scanner input = new Scanner(System.in); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name="ProjectCodeStyleConfiguration"> | |
<code_scheme name="Project" version="173"> | |
<option name="AUTODETECT_INDENTS" value="false" /> | |
<codeStyleSettings language="JAVA"> | |
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> | |
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="4" /> | |
<option name="CLASS_BRACE_STYLE" value="5" /> | |
<option name="METHOD_BRACE_STYLE" value="5" /> | |
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" /> | |
<option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.object.params;/* | |
* Name: Geoffrey Zoref | |
* Date: 9/7/2018 | |
* Project: Classes and Objects - Ch. 6 | |
*/ | |
public class Box { | |
double width, height, depth; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.object.params; | |
import java.util.Scanner; | |
/* | |
* Name: Geoffrey Zoref | |
* Date: 9/8/2018 | |
* Project: Classes and Objects - Ch. 6 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Name: Geoffrey Zoref | |
* Date: 10/10/2018 | |
* Project: Classes and Objects - Ch. 6 | |
*/ | |
import java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
import java.util.Scanner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DiceGame; | |
import java.util.Random; | |
/* | |
* Name: Geoffrey Zoref | |
* Date: 9/7/2018 | |
* Project: Classes and Objects - Ch. 6 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="JAVA_MODULE" version="4"> | |
<component name="NewModuleRootManager" inherit-compiler-output="true"> | |
<exclude-output /> | |
<content url="file://$MODULE_DIR$"> | |
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | |
</content> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> |
NewerOlder