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.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
import java.awt.image.BufferedImage; | |
public class GUI extends JFrame | |
{ | |
private JTextField username; | |
private JTextField password; | |
private JButton login; | |
private JButton register; |
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.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
import java.awt.image.BufferedImage; | |
public class GUI extends JFrame | |
{ | |
private JButton upButton; | |
private JButton leftButton; | |
private JButton rightButton; |
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.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
import java.awt.image.BufferedImage; | |
import java.util.*; | |
public class GUI extends JFrame | |
{ | |
private JButton start; | |
private JButton roll; |
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 Average | |
{ | |
static int[] avg = {45, 56, 34, 89}; | |
static long first = 2000000; | |
static long second = 4000000; | |
public static void main(String[] args) | |
{ | |
PrintAll(); | |
PrintSum(); | |
PrintAverage(); |
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 void count () { | |
for (i = -10; i++; i < 91) { | |
ans = ans + i; | |
} | |
system.out.println(ans); | |
} |
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 com.company; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.*; | |
public class GUI extends JFrame | |
implements ActionListener { |
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.LinkedList; | |
import java.util.List; | |
public class Employee { | |
private String name, designation; | |
private int age; | |
private double salary; | |
public static void main(String [ ] args) { | |
List<Employee> employees = new LinkedList<Employee>(); | |
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 Car extends vehicle { | |
public boolean sunroof, childSeat, electric; | |
public Car(boolean x, y, z) { | |
sunroof = x; | |
childSeat = y; | |
electric = z; | |
} | |
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.*; | |
public class NumberGuesser | |
{ | |
Random rn = new Random(); | |
Scanner reader = new Scanner(System.in); | |
private int x, y; | |
private boolean guess = false; | |
public void newNumber(int z) { |
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.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
public class DrawExample extends JFrame | |
implements ActionListener { | |
private JButton button; | |
private JPanel panel; |
NewerOlder