Originally posted by Jherald Lacambra:
i see your problem here
public class Lab13C {
public static void main(String[] args) {
System.out.println("Larger number: " + larger(7, 3.5));
}
}
in this class you are calling a method outside the class so you have to instantiate the Calc class in order fo you the method on the calc class
Originally posted by bharath kumar narayanan:
anyway is there any one book that i cud study to get through scjp at 80% or above. im a student and have much academic work.. and my campus interviews are fast approaching... i need to finish it in 2 to 3 months...
Originally posted by Seema Ahuja:
I am sorry i know this is a rather old topic but
if(b1 & b2 | b2 & b3 | b4)
System.out.println("Crazy stuff");
gives a compile time error. says operator & cannot be applied to Boolean and boolean
I created b1 as
Boolean b1 = new Boolean(false);
as it does not allow me to create a Boolean object like this:
Boolean b1= false;
Will anyone plz clarify
Thanks