intermediate/BankAccountTest

From ggc

Jump to: navigation, search

01 package intermediate;
02 
03 
04 /**
05  * All about my application.
06  @author My Name Here
07  */
08 public class BankAccountTest
09 {
10   public static void main(String[] args)
11   {
12     BankAccount account;
13     account=new BankAccount();
14     int message;
15     message=account.toString();
16     System.out.println("Hello "+message);
17   }
18 }

Compiler Errors:
----------
1. ERROR in intermediate/BankAccountTest.java (at line 15)
	message=account.toString();
	        ^^^^^^^^^^^^^^^^^^
Type mismatch: cannot convert from String to int
----------
1 problem (1 error)

Download/View intermediate/BankAccountTest.java




Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter