Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to print multiple lines in java


System.out.println("Players take turns marking a square."
+ "
Only squares not already marked can be picked."
+ "
Once a player has marked three squares in a row, he or she wins!"
+ "
If all squares are marked and no three squares are the same, a tied game is declared."
+ "
Have Fun!");
Comment

how to print multiple things in one line java

Integer test = 123;
String str = ":)";
System.out.println("Hello" + " " + "World!" + str + " " + test);

// Output:
// $> Hello World!:) 123
Comment

PREVIOUS NEXT
Code Example
Java :: android java get current time 
Java :: use findviewbyid in fragment 
Java :: java random word from list 
Java :: concatenate two arrays java 
Java :: priority queue java comparator lambda 
Java :: how to iterate a queue in java 
Java :: java find last element in array 
Java :: java delete directory with files 
Java :: 2d arraylist in java 
Java :: how to read input in java 
Java :: jframe border 
Java :: hashmap key check 
Java :: java copy array 
Java :: string array to string java 
Java :: java main method 
Java :: how to import math lib in java 
Java :: how to print hello world java 
Java :: java summe array 
Java :: simple login password and username java 
Java :: odd number in java 
Java :: java % 
Java :: double quotes in string java 
Java :: java join two list 
Java :: how to print to the console in java 
Java :: reverse a integer in java 
Java :: implement the bubble sort algorithm on the following arraylist 
Java :: java break multiple loops 
Java :: strictfp java 
Java :: Array list deep copy 
Java :: set image programmatically android 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =