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
using System; | |
class Program | |
{ | |
static void Main() | |
{ | |
double a, b, c, x1, x2; | |
a = double.Parse(Console.ReadLine()); | |
b = double.Parse(Console.ReadLine()); | |
c = double.Parse(Console.ReadLine()); |
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.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Scanner; | |
public class OfficeStuff | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner scan = new Scanner(System.in); |
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.util.Scanner; | |
import java.util.TreeMap; | |
public class LogsAggregator { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); |
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.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Scanner; | |
public class LogsAggregator | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner scan = new Scanner(System.in); |
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.awt.Graphics; | |
import java.awt.Image; | |
import java.awt.Toolkit; | |
import java.util.ArrayList; | |
import java.util.Random; | |
class Bullets { | |
static int startY = 10; | |
static ArrayList<Integer> bullets1 = new ArrayList<Integer>(); |
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.awt.Graphics; | |
import java.awt.Image; | |
import java.awt.Toolkit; | |
import java.util.ArrayList; | |
import java.util.Random; | |
class Bullets { | |
static int startY = 10; | |
static ArrayList<Integer> bullets1 = new ArrayList<Integer>(); |
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.awt.Graphics; | |
import java.awt.Image; | |
import java.awt.Toolkit; | |
import java.util.ArrayList; | |
import java.util.Random; | |
class Bullets { | |
static int startY = 10; | |
static ArrayList<Integer> bullets1 = new ArrayList<Integer>(); |
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
class Rain { | |
static Random rnd = new Random(); | |
static int yy = 10; | |
static int enemySize = 16; | |
static ArrayList<Object> rain = new ArrayList<Object>(); | |
static Object[] enemies = { Toolkit.getDefaultToolkit().getImage("dollar.png"), //0 | |
Toolkit.getDefaultToolkit().getImage("rock.png"), //1 | |
Toolkit.getDefaultToolkit().getImage("rock.png"), //2 | |
Toolkit.getDefaultToolkit().getImage("rock.png"), //3 |
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.awt.Graphics; | |
import java.awt.Image; | |
import java.awt.Toolkit; | |
import java.awt.event.KeyAdapter; | |
import java.awt.event.KeyEvent; | |
import java.util.ArrayList; | |
import java.util.Random; | |
import javax.swing.JFrame; |
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
private static boolean collisionCheck(Object rockX, Object rockY, int spaceshipx, | |
int spaceshipy) { | |
if ((spaceshipx >= (int)rockX && spaceshipx <= (int)rockX + 16) | |
&& (spaceshipy >= (int)rockY && spaceshipy <= (int)rockY + 16)) { | |
return true; | |
} | |
return false; | |
} |
NewerOlder