Running JAVA program in Linux Ubuntu
The tutorial bellow explains simple procedure to compile, interpret, and execute Java program in Ubuntu using JDK sofware. Steps to run Java program in Ubuntu: 1. Go to Applications > Accessories > Terminal, to open terminal window. 2. Type the following in command line gedit Add.java 3. Enter the code bellow in the editor. /* Addition of two numbers – Add.java */ import java.io.*; class Add { public static void main(String args[]) { InputStreamReader ISR = new InputStreamReader(System.in); BufferedReader BR = new BufferedReader(ISR); int a = 0, b = 0; try { System.out.print("Enter the first number: "); a = Integer.parseInt(BR.readLine()); System.out.print("Enter the second number: "); b = Integer.parseInt(BR.readLine()); } catch(Exception e) { System.out.println("Check the program."); } System.out.println("Addition of " + a + " + " + b + " is " + (a+b)...