Search found 3 matches

by tat
Sun Jan 25, 2004 2:39 am
Forum: Java
Topic: Some help with some code??
Replies: 3
Views: 384

here is the class which looks into directory C://MyJava/ and lists all files, subdirect. in that directory. it is also writes to the console one of the files import java.io.*; import java.util.*; public class TestFile { public static void main (String [] args) throws Exception { File listFiles = new...
by tat
Sun Jan 25, 2004 2:23 am
Forum: Java
Topic: Run Java Application
Replies: 2
Views: 672

run java application

you may try to run your java application from the command promt. Open command promt change directory to the directory where you saved and compiled your class, and issue the comand java -classpath . XXX where XXX is name of you class or from the TextPad you can use Tools -> Run... than you need to cr...
by tat
Sun Jan 25, 2004 1:33 am
Forum: Java
Topic: Having a problem calling a method from another class
Replies: 5
Views: 602

make sure that your method is declared as static. Than you don't need to create an instance of this class to call a method