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 — Source-Code-from-Tutorials/Java_Beginners/50_javaBeginners.java at master · SF5/Source-Code-from-Tutorials Expand file tree/ Copy path50_javaBeginners.javaMore file actions 16 lines (11 loc) · 500 Bytes / Copy path50_javaBeginners.javaFile metadata and controls16 lines (11 loc) · 500 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import javax.swing.JOptionPane; class apples { public static void main(String[] args){ String fn = JOptionPane.showInputDialog("Enter first number"); String sn = JOptionPane.showInputDialog("Enter second number"); int num1 = Integer.parseInt(fn); int num2 = Integer.parseInt(sn); int sum = num1 + num2; JOptionPane.showMessageDialog(null, "The answer is " + sum, "the title", JOptionPane.PLAIN_MESSAGE); } } |
| You are visitor 01402775 — 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. |