1 public class Banking extends Thread {
3 public Banking(Account myacc) {
8 for(int i = 0; i < 10000; i++) {
16 public static void main(String[] args) {
18 int[] mid = new int[2];
19 mid[0] = (128<<24)|(195<<16)|(175<<8)|79; //dw-8
20 mid[1] = (128<<24)|(195<<16)|(175<<8)|73; //dw-5
22 b = global new Banking[2];
23 for(int i = 0; i < 2; i++) {
24 b[i] = global new Banking();
25 b[i].myacc = global new Account(i);
30 for(int i = 0; i < 2; i++) {
37 for(int i = 0; i < 2; i++) {
50 public Account(int custid) {
55 public void deposit(int amt) {
59 public void withdraw(int amt) {
61 System.printString("Amount is greater than balance\n");