The following text was written to the standard output stream when the ExpressionsThing.java program was executed from Netbeans.
/* * Program that affords oppertunities to explore the construction of arithmatic * expressions in the context of some very simple problem solving. */ package expressions; /** * * @author ecuevas */ public class ExpressionsThing { /** * @param args the command line arguments */ public static void main(String[] args) { double one = 3.14 * 5 + 5; System.out.println("one= " + one); double two = 3.14 * (5 + 5); System.out.println("two =" + two); double three = (3.14 * (5 + 5) ); System.out.println("three =" + three); double four = (2 * 3); System.out.println("four=" + four); double five = (55 * 0.5); System.out.println("five=" + five); double six = (65.0/1 * 1/3); System.out.println("six=" + six); double seven = ((55 * 0.5) + ((65.0/1.0) * (1.0/3.0))); System.out.println("seven=" + seven); double eight = (3.14 * 127.69); System.out.println("eight=" + eight); double nine = (27.7 * 27.7); System.out.println("nine=" + nine); double ten = ((eight + nine)/2); System.out.println("ten=" + ten); double eleven = (.17 * 243.5); System.out.println("eleven=" + eleven); int twelve = (3/3); System.out.println("twelve=" + twelve); int thirteen = (1*(7-(4+2))); System.out.println("thirteen=" + thirteen); int fourteen = ((((9-7)+3)-1)); System.out.println("fourteen=" + fourteen); double fifteen = ((((4+8)-6)/2)+2); System.out.println("fifteen=" + fifteen); } }