answersLogoWhite

0

What is the action of print in java?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

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

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the action of print in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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);


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

By using the static block


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.


What is the difference between networking and servlet in java?

Networking is a basic action. A servlet in Java is a single part of networking, a single task.