This file contains hidden or 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 MovingObj extends Object { | |
int xSpeed, ySpeed; | |
MovingObj() { | |
super(); | |
xSpeed = 1; | |
ySpeed = 1; | |
} | |
MovingObj(float inX, float inY, float inW, float inH, float inXSpeed, float inYSpeed) { | |
super(inX, inY, inW, inH) |
This file contains hidden or 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.util.*; | |
public class SwingJPanelDemo extends Frame implements ActionListener { | |
private JLabel labelUsername = new JLabel("Enter username: "); | |
private JLabel labelPassword = new JLabel("Enter password: "); | |
private JTextField textUsername = new JTextField(20); |
This file contains hidden or 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.*; | |
public class Character { | |
private String charName; | |
private String charRace; | |
private String gender; | |
private int age; | |
private String charClass; | |
private int strength; | |
private int constitution; | |
private int dexterity; |
This file contains hidden or 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 BlackJack { | |
private ArrayList<Card> hand1 = new ArrayList<Card>(); | |
private ArrayList<Card> hand2 = new ArrayList<Card>(); | |
private ArrayList<Card> hand3 = new ArrayList<Card>(); | |
Scanner Scan = new Scanner(System.in); | |
public void start() { | |
deal(); | |
System.out.print("\f"); |
NewerOlder