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
Post a Comment