Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  NB THE KING
Language: JAVA
Code:
public class TestAccount {

    public static void main(String[] args) {
Account a1=newAccount(1234,99.99);
System.out.println(a1);
a1.credit(10.001);
a1.debit(5);
System.out.println(a1);
System.out.println(a1.getBalance());
a1.setBalance(0);
System.out.println(a1);
Account a2=newAccount(8888);
System.out.println(a2);

    }

}          
Comments: