class FooTes {
int i = 105;
public void go() {
if(i<= 100)
{
System.out.prin tln("Cho Cho");
assert(i==100)
{
throw new RuntimeExceptio n("Assertion must be enabled!");
}
}
else
{
System.out.prin tln("Mo Mo");
}
}
}
class FooTesDrive {
public static void main(String args[])
{
FooTes foo = new FooTes();
foo.go();
}
}
Code is not working.
Best Regards
K Banerjee
:o
int i = 105;
public void go() {
if(i<= 100)
{
System.out.prin tln("Cho Cho");
assert(i==100)
{
throw new RuntimeExceptio n("Assertion must be enabled!");
}
}
else
{
System.out.prin tln("Mo Mo");
}
}
}
class FooTesDrive {
public static void main(String args[])
{
FooTes foo = new FooTes();
foo.go();
}
}
Code is not working.
Best Regards
K Banerjee
:o
Comment