This file contains 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 game; | |
import java.util.ArrayList; | |
public class RunningGame extends Minigame { | |
//introducing private entity | |
private IconEntity arrow_left; | |
private IconEntity arrow_right; | |
long countdown; |
This file contains 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 game; | |
import java.awt.Canvas; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics2D; | |
import java.awt.event.KeyAdapter; | |
import java.awt.event.KeyEvent; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; |
This file contains 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 game; | |
import java.util.ArrayList; | |
public class RunningGame extends Minigame { | |
private int correct = 2; | |
private IconEntity arrow_left; | |
private IconEntity arrow_right; | |
private int selected = 0; |
This file contains 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 game; | |
import java.util.ArrayList; | |
public class RunningGame extends Minigame { | |
private int correct = 2; | |
private IconEntity arrow_left; | |
private IconEntity arrow_right; | |
private int selected = 0; |
This file contains 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 game; | |
import java.util.ArrayList; | |
public class RunningGame extends Minigame { | |
private int correct = 2; | |
private IconEntity arrow_left; | |
private IconEntity arrow_right; | |
private int selected = 0; |
This file contains 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 server; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
/* | |
* Thread safe representation of a movie theatre | |
*/ | |
public class Theater { | |
//ArrayList of seat numbers |
This file contains 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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class InfAddMathEquation { | |
public static void main( String args[]) throws IOException { | |
System.out.println("Enter Numbers, Type eq to add"); | |
double[] anArray= new double[99]; |
This file contains 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.io.*; | |
import java.util.ArrayList; | |
public class ArrayListDemo { | |
//program for storing an arbitrary number of strings in a list and then printing them out. | |
public static void main(String[] args){ | |
ArrayList<String> list = new ArrayList<String>(); |
This file contains 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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class Temperature{ | |
public static void main(String[] args){ | |
//the data that will be entered by the user | |
String farenheit1; |
This file contains 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
public class Main { | |
/** | |
* @param args | |
* | |
*/ | |
public static void main(String[] args) { | |
// prints "hello world" | |