Cum folosim tipul de date String. Cum atribuim valori de tip text in Java ?

public class Application {

public static void main(String[] args) {
    int myInt = 9;

    String text = "Buna";

    String blank = " ";

    String name = "Bob";

    String greeting = text + blank + name;

    System.out.println(greeting);

    System.out.println("Buna" + " " + "Bob");

    System.out.println("Numarul intreg este: " + myInt);

    double myDouble = 6.8;

    System.out.println("Numarul zecimal este: " + myDouble + ".");

  }
}
Output is:
Buna Bob
Buna Bob
Numarul intreg este: 9
Numarul zecimal este: 6.8.