Atttention
1.chararcter type must single quotation marks ”,not double quotation ”
2.double type must end with d
3.float type must end with f
public class printSample{
public static void main(String[] args){
String str = "Hello";
int i1 = 1;
float f1 = 1.10f;
double d1 = 1.001d;
char c1 = 'c';
System.out.print("The out is :");
System.out.println(str);
System.out.print("The out is :");
System.out.println(i1);
System.out.print("The out is :");
System.out.println(f1);
System.out.print("The out is :");
System.out.println(d1);
System.out.print("The out is :");
System.out.println(c1);
}
}