Here's how I would do it.Code:package lab1; /* This identifies what package this file belongs too */ import java.util.Scanner; /** Import the scanner class from the java standard library */ /** * @author Sarah Bermudez * October 9, 2009 * The purpose of the program is to calculate a formula by assigning a * value to each variable. */ public class Main { /* definition of main class, with public visibility */ /** * @param args the command line arguments //javadoc */ public static void main(String[] args) { //execution entry int i, j; /* declare 2 integer variables named i and j */ char c; // declare character variable named c double x; // declare double variable named x /** * assign values to the variables */ i = 4; j = i + 7; c = 'A'; x = 9.087; x = x * 12.3; System.out.println("i is " + i + ", j is " + j + ", c is " + c + ", x is " + x); //write to system output } // end of execution }//end of Main class definition