Skip to content

Instantly share code, notes, and snippets.

import java.io.*;
public class UserInput {
private static final int F = 0;
public static void main(String[] args){
//the data that will be entered by the user
String name;
import java.util.*;
public class UserInput1 {
public static void main( String args[]) {
Scanner kbReader=new Scanner(System.in);
System.out.print("Put Farenhiet here");
Integer f =kbReader.nextInt();
Integer c = (f-32)*5/9;
System.out.print("Farenhiet = " + f + " Celsius = " + c);
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.Reader;
public class Calculator {
/**
* @param args
*/
@Spikey3
Spikey3 / Calculator
Created February 13, 2012 03:19
Dave's orignal calculator with arrays
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
public class Calculator {
/**
* @param args
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
public class Calculator {
/**
* @param args
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
public class Calculator {
/**
* @param args
*/
@Spikey3
Spikey3 / Three number calulator
Created February 14, 2012 19:32
Three number calculator using arrays
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
public class Calculator {
/**
* @param args
*/
package game;
import java.util.ArrayList;
public class RunningGame extends Minigame {
private int correct = 2;
private IconEntity computer_key_arrow_left;
private IconEntity computer_key_arrow_right;
private int selected = 0;
package game;
/**
* An entity which represents one of our space invader aliens.
*
* @author Kevin Glass
*/
public class IconEntity extends Entity {
/** The game in which the entity exists */
private Engine engine;
package game;
import java.util.ArrayList;
public class RunningGame extends Minigame {
private int correct = 2;
private IconEntity computer_key_arrow_left;
private IconEntity computer_key_arrow_right;
private FrameEntity coffee-backgrounds-wallpapers;