Sublime Forum

New to Sublime and need some help!

#1

Hey im new to Sublime and are currently running Sublime text 3. I am coming from jGRASP and are writing in java.
In jGRASP you can run your program and see the result of the cod in the console. How do you “Check” your code/program in Sublime? if i ctrl b it is only saying that the program took ex 1.0 s or if it is wrong written. To clarify here is an simple code:

public class testt {
public static void main(String] args) {

int a, b;
a = 10;
b = 11;

System.out.println(a+b);

  }

}

can i get the program Ide to write out the answer ( 21 )? I do not want to go throw notepad or a web browser. Sorry for my bad English it is not my native. Many thanks for the help! really nice of people to take time and help strangers, makes the world to a better place! so cheers!

0 Likes

#2

Ctrl+B only builds the file (for Java, that is). You need to do Ctrl+Shift+B and select “Run” to execute it.

You could also modify the build system to do both at once. See packagecontrol.io/packages/Pack … urceViewer to browse “Java/JavaC.sublime-build” when doing modifications.

Next time, please choose a more approriate title for your thread.

0 Likes