Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Geoffrey Zoref Gzoref

🏠
Working from home
View GitHub Profile
View OOGreeting_Greeter.java
package OOGreeting;
//Objectr Oriented way
public class Greeter {
public void greet(Greeting greeting) {
greeting.perform();
}
public static void main(String[] args) {
View Lambda Tutorials_.idea_encodings.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>
View app.py
phrase = "Geoff Zoref";
print(phrase.replace("Geoff", "Amanda"));
View src_ChoHanMain.java
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);
View Project Eular Problems_.idea_codeStyles_Project.xml
<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" />
View Box.java
package com.object.params;/*
* Name: Geoffrey Zoref
* Date: 9/7/2018
* Project: Classes and Objects - Ch. 6
*/
public class Box {
double width, height, depth;
View Scan.java
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 Nov 29, 2018
Pennies For Days
View Pennies.java
/*
* 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;
View DiceGame_Dice.java
package DiceGame;
import java.util.Random;
/*
* Name: Geoffrey Zoref
* Date: 9/7/2018
* Project: Classes and Objects - Ch. 6
*/
View Text Manipulating_Text Manipulating.iml
<?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>