Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

Santosh Kumar Nayak

Ranch Hand
+ Follow
since Aug 02, 2011
Santosh Kumar likes ...
Eclipse IDE IntelliJ IDE Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
18
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Santosh Kumar Nayak



THANKS This is what I was looking for ....
3 months ago
Special attention needed for  Date field

Below you can see an Immutable Class Sample :-

3 months ago
I recommend Parameterized Queries:



Above code would be useful






Above code is running code but need help to accommodate Dynamic Input using Scanner.in   

As of now am using static input 



3 months ago



Tried the above Code but does not work. It keeps taking Input from user

3 months ago
Any way to make take run time input using Scanner Class ?




Any Help on this would be appreciated !!!

3 months ago
Static class , methods and data members needs to be loaded in JVM before an instance  of the class is created
3 months ago



Output for 1st case:
MyThread
foo


But the Line 12 code is changed to

Ouput for 2nd case :
MyThread
Bar


What I want to understand is about the 2nd case

3 months ago
What is the difference between return and return 1?

I think return will return void value and

return 1 will return 1 . Anything else ?
5 months ago
Thanks

In case I want to change the Price of Orange to 50. How should I go about to do it ?
5 months ago


Can you please Help me to resolve the error on LINE no : 12  ( printMap(HashMap <Fruit, Price> hm);)



5 months ago
I have set the Object t2 to null then how come Value is getting printed

Can some one explain as what is happening in Java memory
5 months ago


Output :- Name :Green

Can some one help me on understanding as why the Output is Green ?
5 months ago
Thanks will try out that
5 months ago
Desired Output is :
FULL Q [1, 2, 2, 3,4,5, 8]
5 months ago