Using files as command line args Java -


i trying pass in 2 .wav files program through command line.

in main() have tried casting them file

file(args[0]) 

this don't work.if want able use .wav files pass in command line args need do?

you need pass in url of files via command line , create new files urls.

public static void main(string[] args) {     file file1 = new file(args[0]);     file file2 = new file(args[1]); 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -