Check out example codes for "java text ouput to console". It will help you in understanding the concepts better.

Code Example 1

System.out.println("Hello world!"); 
//This will be printed out to the console and requires no imports.

Learn ReactJs, React Native from akashmittal.com