Ejemplo 1: Java cómo imprimir
System.out.println("whatever you want");
//you can type sysout and then ctrl + space
Ejemplo 2: system.out.println
public static void main(String[] args){
System.out.println("Hello World");
}
Ejemplo 3: system.out.println
System.out.println("Hello World");
Ejemplo 4: java println
System.out.print(<string>); //prints in the same line as the previous print
System.out.println(<string>); //prints in a new line
// Example
System.out.print("This ");
System.out.print("will ");
System.out.print("be ");
System.out.print("all ");
System.out.print("in ");
System.out.print("one ");
System.out.print("line.");
System.out.println("Hello World!");
System.out.println("second line");
Ejemplo 5: system.out.println ()
system.out.println("Hello world!");
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)