This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!

Sri, Shankar

Greenhorn
+ Follow
since Jul 23, 2002
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sri, Shankar

Assuming that the machine is not on the internet...why don't assume the hostname java.sun.com and deploy the required files on the local box. I know its a hack but it should work...
19 years ago
If your page is a JSP or a Servelet, you can generate javascript on the fly to acheive this. For example - you can generate an array of objects that contain information about the images...
Print the statement to the std err and check before it goes into execute...
btw. as a side note...you should indent your code...
For cases 1 2 and 3 you have a non terminating loop!

do
{
switch(choice)
{
case 1: setColour("Red") ; break ;
case 2: setColour("Blue") ; break ;
case 3: setColour("White") ; break ;
default: System.out.println("Enter number 1, 2, or 3:") ;
}
}while(choice != 1 || choice != 2 || choice != 3) ;
19 years ago
Pass reference by value means that the original reference cannot be modified...
so if you have :
public void kewlMethod (Object orv) {
}
and u have a fragment ...
line 1 : Object o = new Object ();
line 2 : kewlMethod (o);
here kewlMethod is passed a copy of the reference to the object created in line 1 so if in the method body it assigns something else to orv that will not modify the original reference o.
can u post an example of what is happening?
19 years ago