Abhishek Mj

Greenhorn
+ Follow
since Jan 07, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhishek Mj

Okay. Got it.. thanks for pointing. So if we use wrapper class, there won't be initialization done like i = 0. And is initialized to 'null' as any other object . So it cannot be used in any expressions before initializing it ! correct ?
11 years ago
Why do I get null pointer exception for this code??

11 years ago
@Jesper: Thanks a lot for the clear answer!
@ Jan: Yeah. I tried with different inputs and recompilation. But found the same error.
11 years ago
But I am trying to understand how the compiler working on the code and displaying the error. Can you provide more information on how to use return statements with if statements?
11 years ago


Even though I have given return statements, got error of methods not returning.. Can you please explain?



Error Msg:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
This method must return a result of type boolean

at SleepIn.whenSleepIn(SleepIn.java:10)
at SleepIn.main(SleepIn.java:25)
11 years ago