answersLogoWhite

0


Best Answer

For example:

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

For example:

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

For example:

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

For example:

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

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

char str[stringSize] = "blablabla";

cout << str;

Note: it is neither Java, nor C, not statement. Otherwise okay.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

For example:

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

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you display a string on the console with java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is concatetion operation used in java?

"+" is the concatenation operator in Java. It can be used to concatenate two strings. Ex: String firstName = "John"; String lastName = "Morrison"; System.out.println(firstName + " " + lastName); The above code snippet would display John Morrison in the console.


Write a program in java to display a string message using Servlets?

i dont no string for servlate


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).


Why does Java accept any input as string by default?

Java doesn't always accept any input as a string it only do that when the input is entered from the " JOptionPane.InputDialog" but it can accept any other data type like integer or short from the console though Scanner class .


What are some example for string formatting in Java?

There are lots of examples of string formatting in Java. It can be difficult at times. Some of these examples are, but are not limited to; align, string, format, and JAVA.


How to Write a java program to display hello?

public class Hello{public static void main(String [] args){System.out.println("Hello");}}


What does Systemout mean in java?

System.out refers to the Java console.


What does it mean to have a string split in java?

To have a string split in Java means that a string array, containing substrings (can be delimited by elements of a specified string or Unicode character array), is returned.


In computer terms what does the phrase 'java string replace' mean?

When referring to computer terms, the phrase "java string replace" means that a string in the line of code that Java uses, is being replaced, or needs to be replaced.


How does the string trim work in Java?

The string trim works in Java by trimming white space from the beginning and end of a string. It cleans up the string and makes makes it neater for the users of the program.


List out the version of java?

Running "java -version" will display the current version of Java.


What are the different between'a' and ''a in java string methods?

The difference between 'a' and "a" anywhere in Java is that 'a' is a primitive char type, while "a" is a String object.