Ravindra Suroju

Greenhorn
+ Follow
since Mar 11, 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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Ravindra Suroju

Tried to implement both the methods as a same method. as below but it is throwing a NoClassDefFoundError

Code: //
public class test extends AbstractAccept implements Acceptable {
public void accept(){
System.out.println("running Successfully");
}
public static void main (String[] args) {
(new test()).accept();
}
}
8 years ago
I have a method with same signature (arguments & return type) in an abstract class and interface. I want to extend the abstract class and implement the interface in a single class. how can I do that.... please help

Code:

interface Acceptable {
public void accept ();
}

public abstract class AbstractAccept {
public abstract void accept (); // updated the code, forgot to add abstract first time
}

public class ConcreteAccept extends AbstractAccept implements Acceptable {
//// implementation code goes here
}
8 years ago
you can use the following code without changing the calling method also no need pass isDog boolean


public void feedTheAnimals(Animal[] animals) {
for (int i = 0; i < animals.length; i++) {
if (animals[i] instanceof Dog) {
feedOneDog(animals[i]);
} else if (animals[i] instanceof Tiger) {
feedOneTiger(animals[i]);
} else {
System.out.println("Generic Animal");
}
}
}

- Ravindra.
8 years ago
I have problem where in I want to check for few conditions in Java Script and I want the results to returned to the Java part of the JSP ...

Can someone please help me.

This is like i have to read few input tags and populate options in the select dropdown.....

Its like reading the few INPUT tags and perform some check and calculations then populate the dropdown.... for checking and validating the I'm using Java Script.... Is it a correct approach....

Thanks in Advance.

Regards,
Ravindra.
9 years ago
JSP
I have my code deployed on a websphere server. how can I access a file present on server (C:\abc\def\xyz.txt). I am able to read the path from properties file but getting a file not found exception. wat should be the path in properites file to access the file that is present on harddisk.

Regards,
Ravindra.
9 years ago
Hi Ravi,

I dont think JRE will automatically update from JRE 5 update X to JRE 6(after Java 1.4, it is Java 5,6 and not 1.5 or 1.6). You have to manually installed the latest version JRE n JDK.

Regards,
Ravindra.
9 years ago
form tab is not closed... please check
9 years ago
JSP
Hi,

I have the code to create a text file and append some data into it and when i run the same program again why is it overwriting the existing file instead of appending the new data... please help me...

9 years ago
Below is the code for creating a new empty file called "raven.txt"
I wanna add some Strings to the file from a String array with a tab between every two strings.
can someone help me in this...

Thanks in Advance...

Regards,
Ravindra.
9 years ago
Can someone help me in Accessing Database with username and password....

for example there is a database called SECTION and password is 3arth01.

I would like to access the REPORTS table.. ex query.

SELECT REPORT_ID from REPORTS where REPORT_NAME="TEST_REPORT"

If possible give me the link to a tutorial where i can find similar stuff.

Thanks in Advance...

Regards,
Ravindra.
9 years ago
Thanks so much Bob...
9 years ago
Hi all,

I want to print the absolute path of all files (including the files in subfolders) in a given directory [C:/Source]. Please help me what is wrong with my code...

9 years ago
how to read files in specified directory??
9 years ago
How can i read the files in specified directory?
9 years ago