java print statement with variables code example Example: java print text with variables System.out.println("You have "+variable+" points");