// Testing your parser/compiler for MiniJava+ extensions class MJplustest { public static void main(String[] args) { String s = "no kidding"; // do you support string expressions and int x = 4; // declarations with initial values? if(!(x==x+1)) System.out.printf(s); // if with no else? x = "abc"; bankaccount ab = new other(); int z = zzz; bankaccount myaccount = new bankaccount(); bankaccount youraccount = new bankaccount(); myaccount.init(500); youraccount.init(800); int m = myaccount.withdraw(200); int y = youraccount.deposit(100); System.out.printf("%d\n",m); System.out.printf("%d\n",y); System.out.printf("transactions complete\n"); } //main } class bankaccount { int balance; public void init(int b) { balance=b; } public int withdraw(int amt) { balance = balance-amt; return balance; } public int deposit(int amt) { balance = balance+amt; return balance; } } class other { int x; public int f(int y) {if (x<0) return "abc"; else x=0;} }