class Assertion
{
public void assert(int k)
{
System.out.println("k is "+k);
}
public static void main(String[] args)
{
A a = new A();
a.assert(Integer.parseInt(args[0]); //4
}
}
That class will not compile, because class A is not known. Probably in main ther should be "Assertion a = new Assertion();"
About Question com.enthuware.ets.scjp.v6.2.42 :
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.42 :
You are right. A should actually be Assertion.
This has been fixed.
thank you for your feedback!
This has been fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 29 guests