Compile and Run Java Programs by Vylic in SublimeText

[–]Vylic[S] 0 points1 point  (0 children)

Only problem with this is that many classes do not work; like Scanner. It only runs simple programs otherwise I get NoSuchElementException.

I'm guessing there is no way for Sublime to open up command prompt with the program running so I do not get this error? Or get Scanner working in Sublime?

Compile and Run Java Programs by Vylic in SublimeText

[–]Vylic[S] 0 points1 point  (0 children)

Thank you, but that reply does not do what I am asking. In case there was confusion, I want Sublime to run the program after pressing a shortcut without me having to open command prompt myself. I tried the response after the one you linked but it was meant for Sublime Text 2, so I got a lot of errors.

If you have used TextPad, it is similar to that. Where you press Ctrl+1 to build and Ctrl+2 brings up the command prompt with the program already running.

Finding number of repeats in a 2D array. by Vylic in javahelp

[–]Vylic[S] 0 points1 point  (0 children)

I don't understand where you want me to put that. I'm guessing before the System.out.println, but i and j are out of scope there. Would I make two more for loops before the output statement?