java record quarrel management line argument
how slight information java quarrel file. example: suspect have record input.txt. essence record is:
abcdefghizzzzjklmnop
azzbcdefghijklmnop
my wish information put justification array strings such following formula cost "abcdefghizzzzjklmnop"
class exam {
open stationary vacant main(string[] args) {
system.out.println(args[0]);
}
}
the management i have controlling throws an array out organization exception. management is:
java exam < input.txt
non-file formed arguments work glorious though. ie. java exam hello,a nd java exam < input.txt hello.
more information:
i have attempted putting record essence line \n \r characters competence messing things up. didn't seem help.
also, i can't bufferedreader category since way school, work professors bombard script. went over during class, nonetheless i didn't down (or i can't it).
any help?
Comments
Post a Comment