Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

ruban raj

Greenhorn
+ Follow
since Aug 05, 2008
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 ruban raj

For running java program ,You have to set classpath and JAVA_HOME.


CLASSPATH:%JAVA_HOME%\lib\tools.jar

JAVA_HOME:here We have to give jdk path.For example: C:\program files\java\jdk1.6

Compile java program using following command:

javac classname.java

run java program using following command:

java classname

i hope this will help You

thanks and regards,

ruban
12 years ago
For executing servlet programs ,it needs server like jboss , tomcat or some other server.

Steps to Exceute Servlet programs:

1.Download jboss or tomcat server ,they are opensource products.

2.Set JAVA_HOME path

3.Set Server_Home path .For example if you use tomcat ,you have to set TOMCAT_HOME path.

4.Put servlet-api jar in lib folder.

5.start the server using startup.bat file.

6.Point out servlet url in address bar.
12 years ago
if we want to check more than one condition . . . [deleted. CR]
}
i hope this code will help you.


Thanks and regards,
ruban

[ October 01, 2008: Message edited by: ruban raj ]

[edit]Deleted solution. CR[/edit]
[ October 01, 2008: Message edited by: Campbell Ritchie ]
12 years ago
You have to place return statement out of "for loop" in side of checkUserGuess() method.

Thanks and regards,

Vasiammal.p
12 years ago
For new java beginner ,HeadFirst Java by Kathy And Sierra is a good book.so better go with head first.Really it is interesting book to learn java..


Regards,

Vasiammal.p
12 years ago
The toString method is widely implemented. It provides a simple, convenient mechanism for debugging classes during development. It is also widely used for logging, and for passing informative error messages to Exception constructors and assertions


Regards,
Vasiammal.p
12 years ago
hi,

can anyone please clarify my doubt in using abstract class...


public abstract class TestAbstract {

public void getMethod()
{
System.out.println("testing concrete method");
}
public static void concreteMethod()
{
System.out.println("testing concrete method");
}
public abstract void abstractMethod();


}
here i have created one abstract class called TestAbstract which has abstract method , non-abstract method and one static non-abstract method.

For abstract class can't be instansitated.we can access static method using class name.now i want to access non-abstract method.i know one way is to extend that class and we can use the method.Please let me know any another way to access the non abstract method without extending that class.

Thanks and regards,

Vasiammal.p
12 years ago