GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java_visualize/example-code/CmdLineArgs.java at master · patrick-slagle/java_visualize Expand file tree/ Copy pathCmdLineArgs.javaMore file actions 16 lines (16 loc) · 600 Bytes / Copy pathCmdLineArgs.javaFile metadata and controls16 lines (16 loc) · 600 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public class CmdLineArgs { public static void main(String[] args) { // you can change "args" in the boxes below this window int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); int sum = a + b; int prod = a * b; int quot = a / b; int rem = a % b; System.out.println(a + " + " + b + " = " + sum); System.out.println(a + " * " + b + " = " + prod); System.out.println(a + " / " + b + " = " + quot); System.out.println(a + " % " + b + " = " + rem); } } /*viz_options {"args":["1234","99"]}*/ |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |