Check out example codes for "java print out int and string". It will help you in understanding the concepts better.

Code Example 1

public class Test 
{ 
    public static void main(String[] args) 
    { 
        System.out.println(45+5 + "=" +45+5); 
    } 
}

Learn ReactJs, React Native from akashmittal.com