[Solved] Java, Including int Variables in Print line
You’ve got some options. Either with string concatenation, right in the spot that you want it (mind the number of quotes): System.out.println(“Since there are (” + bluerocks + “) there must be less than 12 normal rocks”); …or with symbol substitution, via printf: System.out.printf(“Since there are (%d) there must be less than 12 normal rocks”, … Read more