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.hw; | |
import java.util.Random; | |
public class Horse extends Thread{ | |
Random random = new Random(); | |
int speed; | |
int number; | |
RaceCanvas parent; | |
public Horse(RaceCanvas parent,int number) { |
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.fju; | |
import java.sql.SQLOutput; | |
import java.util.Scanner; | |
public class PiggyBank { | |
public static void main(String[] args) { | |
Scanner scanner =new Scanner(System.in); | |
int coin = 0; | |
int newcoin; |