answersLogoWhite

0

What is the action of print in java?

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

Both print() and println() show text in a console window. This can be useful for a first-semester (because programming a GUI is more complicated), or for some quick debugging. println() adds a line break; print() does not.

Example:

System.out.println("Hello.");

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is java program on computers?

#!/usr/bin/perl print 'java program';


How can you print a table of 5 in java by getting values from user?

look at the print


How do you print a string 5 times in java?

For(int I = 0: I < 5; i++) { System.out.println(" print this " + I ); }


What is java console?

The Java console is a display of output sent by a Java program. This is similar to the MS DOS operating system.To print to the console, a programmer will type "println(text);" or "print(text);" depending is the programmer wants to make a new line after the text(println) or not(print).


How do you print message before main in java?

You cannot do that. The main method of a java class is the point where the execution begins. You can print messages only after a main method is invoked.


What is action-mapping in java?

In java action-mappings are not available. Action-mappings are part of struts controller.Through these action-mappings, you will map a particular request to an action class, i.e.which action should be executed on press of a button.


How do you print a symbol in Java when multiple of 5 occurs?

if x%5==0 { System.out.println("@"'); }


How do you print diamond shape in java?

you press on the little square then click yes.. simple


How do you add action listeners to java buttons?

btn1.addToActionListener(this);


What is Systenoutprintln?

You probably mean "System.out.println", which is a system method in Java that allows you to print text to the screen.


Can you print some message on the console without using main in java?

By using the static block


What does System.out.println mean in java?

System : is predefined class. out : is a Output Stream which connects to console. print : is to print in console. println: used to print with next line