Tomy Alexsander wrote:Unfortunately it does not work i am getting this error Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
at hello.main(hello.java:10).
If I am running the second code which I send. Unfortunately, I need to do it in this way:
Yes, you can pass the size and the name of the file as command line arguments. You would appear to be doing that already. No, you can't use | or > as command line operators as you would on a Unix/Linux terminal.myTextFile.txt wrote: 4
0 0 0 1
1 2 3 0
2 2 0 2
3 3 1 0
Consider Paul's rocket mass heater. |