package IO;
import java.io.*;
import java.util.ArrayList;
public class driver {
public static void main(String args[]) {
int s;
try {
//Scanner in = new Scanner(System.in);
//System.out.println("Enter The number of files you want to create");
//s = in.nextLine();
//takes the number of files
ArrayList<String> obj = new ArrayList<String>();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the number of files you want to create");
String num = br.readLine();
int x = Integer.parseInt(num);
// takes the names of file
for (int i = 0; i < x; i++) {
System.out.println("Enter the name for file:");
String name = br.readLine();
Integer.parseInt(name);
obj.add(name);
}
} catch (IOException o) {
System.out.println("Exception^^^^^^^^^^^^^");
}
}
}
Here above is my code but when i compile it on command line like javac driver.java and then java driver it gives me error that could not load main class main ... please help me with sorting of this error .. this code btw contains file handling which is to be implemented later!