D
D
Dima Zherebko2016-02-24 16:10:12
Java
Dima Zherebko, 2016-02-24 16:10:12

How to set up compilation of java code in Sublime text?

class A {
  
}

class B extends A{
  

}

class C extends B{
  public static void main(String ...args){
  A a =new A();
  System.out.print("start");
  }	
}

There is such a code. I need the sublime to compile it and run the class that has the main method. In this case, the name of the file in which this code is located can be anything.
How to set it up in sublime?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question