CS1 Standard Demo Page

The following text was written to the standard output stream when the /* *Code that helps to explore how arithmetic expressions are conducted in code */ package expressions; public class ExpressionsThing { 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); // ----------------------------------------------------------------- int four = (2*3); System.out.println("four = " + four); double five = (55/2); System.out.println("five = "+ five); double six = ((1.0/3)*(65)); System.out.println("six =" + six); double seven = ((55/2)+(65/3)); System.out.println("seven = " + seven); //--------------------------------------------------------------------- double eight = (3.14*(11.3 * 11.3)); System.out.println("eight = " + eight); double nine = (27.7 * 22.7); System.out.println("nine = " + nine); double ten = ((eight + nine)/2); System.out.println("ten = " + ten); double eleven = (0.17 * 243.5); System.out.println("eleven = " + eleven); //---------------------------------------------------------------------- int twelve = (3/3); System.out.println("twelve = " + twelve); int thirteen = (7-(4+2)); System.out.println("thirteen = " + thirteen); int fourteen = ((7-(9/3))/1); System.out.println("fourteen = " + fourteen); int fifteen = ((6-((2*2)+4)/8)); System.out.println("fifteen = " + fifteen); } } program was executed from IntelliJ.

one = 20.700000000000003
two = 31.400000000000002
three = 31.400000000000002
four = 6
five = 27.0
six =21.666666666666664
seven = 48.0
eight = 400.94660000000005
nine = 628.79
ten = 514.8683
eleven = 41.395
twelve = 1
thirteen = 1
fourteen = 4
fifteen = 5