Skip to content

Instantly share code, notes, and snippets.

View Gzoref's full-sized avatar
🏠
Working from home

Geoffrey Zoref Gzoref

🏠
Working from home
View GitHub Profile
@Gzoref
Gzoref / DiceGame_Dice.java
Created November 29, 2018 04:21
First to one game.
package DiceGame;
import java.util.Random;
/*
* Name: Geoffrey Zoref
* Date: 9/7/2018
* Project: Classes and Objects - Ch. 6
*/
package OOGreeting;
//Objectr Oriented way
public class Greeter {
public void greet(Greeting greeting) {
greeting.perform();
}
public static void main(String[] args) {
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>
phrase = "Geoff Zoref";
print(phrase.replace("Geoff", "Amanda"));
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);
<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" />
package com.object.params;/*
* Name: Geoffrey Zoref
* Date: 9/7/2018
* Project: Classes and Objects - Ch. 6
*/
public class Box {
double width, height, depth;
package com.object.params;
import java.util.Scanner;
/*
* Name: Geoffrey Zoref
* Date: 9/8/2018
* Project: Classes and Objects - Ch. 6
*/
@Gzoref
Gzoref / Pennies.java
Created November 29, 2018 04:23
Pennies For Days
/*
* 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;
<?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>