Aug 22, 2024
String name = "David";
System.out.println(name);
+
operator to join strings together.System.out.println("Hello, " + name);
String name = "David";
int age = 24;
double gpa = 2.25;
String bloodType = "O";
System.out.println("Hi, my name is " + name + ". I am " + age + " years old. My GPA is " + gpa + " and my blood type is " + bloodType + ".");