home *** CD-ROM | disk | FTP | other *** search
/ Learn Java Now / Learn_Java_Now_Microsoft_1996.iso / JavaNow / Code / Chap09 / BankAccount / test.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-08-02  |  852 b   |  13 lines

  1. public class test {
  2.    public static void main(String[] s) {
  3.       try {
  4.          BankAccount ba = new BankAccount((double)50.0F);
  5.          ba.Withdrawal((double)100.0F);
  6.          System.out.println("Withdrawal successful!");
  7.       } catch (Exception var3) {
  8.          System.out.println(((Throwable)var3).toString());
  9.       }
  10.  
  11.    }
  12. }
  13.