Simple types / Boolean

var sunIsStar = true;
var str1 = Boolean.toString(sunIsStar);
//str1 is "true"

var earthIsStar = false;
var str2 = earthIsStar + "";
//str2 is "false"

System.out.printf("str1 is '%s'\n", str1);
System.out.printf("str2 is '%s'", str2);