jojoba saxena

Greenhorn
+ Follow
since Mar 22, 2006
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 jojoba saxena

thnks..i got it..i looked for class file...which some how was missing...i compiled theprogram again....and its has worked now.
there was one error..that sum was not initialized.
15 years ago
error
D:\java>java ParseDemo
Exception in thread "main" java.lang.NoClassDefFoundError: ParseDemo

program
import java.io.*;
class ParseDemo{
public static void main(String args[])throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str;
int i;
int sum;
System.out.println("enetr the numbers, 0 to quit");
do{
str=br.readLine();
try{
i=Integer.parseInt(str);}
catch(NumberFormatException e){
System.out.println("invalid format");
i=0;
}
sum+=i;
System.out.println("Current sumis : "+sum);
}while(i!=0);
}}
15 years ago
I m intersted in getting SCJP cerification.Please let me know
1)Syllabus
2)Resources(Books and websites).