how to print out text with a variable in it java code example Example: java print text with variables System.out.println("You have "+variable+" points");