0
Difference between print and printIn
6 Respostas
+ 12
● U can say :
System.out.println("ABC");
works as :
System.out.print("ABC\n");
● U can avoid using { } if there is only statement to execute in if() block.
● U can make use of search bar to search for previously asked posts on this 👍
+ 2
"print" prints in same line while "println" after printing moves the cursor to next line.
for example
Serial.print("A");
Serial.print("B");
/*outputs
AB*/
Serial.println("A");
Serial.print("B");
Serial.print("C");
/*outputs
A
BC*/
+ 1
it's working for me. So I can't tell what the problem is.
public class Program {
public static void main ( String [] args) {
System.out.print("A");
System.out.println("B");
System.out.print("C");
}
}
/*outputs
AB
C
*/
+ 1
Yes yes, thnk you so so so mch
0
Could you please check my codes, when i am using printIn it gives error.