java - Distributing apps via eclips -


can launch executable double click in eclipse after exporting ?

import java.util.scanner;  public class s {     public static void main(string[] args) {         scanner scan = new scanner(system.in);         system.out.println("enter a: ");         int = scan.nextint();         system.out.println("enter b: ");         int b = scan.nextint();         int result = (a + b) / 2;         system.out.println("(a+b)/2 is: " + result);         } } 

the answer can access command line or create batch file starts jar file.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -