Question:
Write a single System.out.print statement (not a System.out.println statement) that produces the following out?
anonymous
2013-06-17 11:26:12 UTC
Write a single System.out.print statement (not a System.out.println statement) that produces the following output:
Homework 1
/'\"/'\

I am new to java and having trouble trying to write this. Thank you
Four answers:
asa
2013-06-17 11:33:21 UTC
system.out.print("hoemwork 1\n /\'\\\"/\'\\");
James Bond
2013-06-19 14:45:05 UTC
Did you try:

main()

{

System.out.print("Homework 1\n/'\"/'\\n");

}
Locoluis
2013-06-17 18:29:05 UTC
System.out.println("Homework 1\n/'\\\"/'\\");
Captain
2013-06-17 18:36:51 UTC
System.out.printf can be used instead of println



or you can return a system.console() to do it as well.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Search results for 'Write a single System.out.print statement (not a System.out.println statement) that produces the following out?' (Questions and Answers)
4
replies
Ap Computer Science Help.?
started 2011-10-08 13:47:14 UTC
programming & design
6
replies
what is java?
started 2006-09-16 00:35:15 UTC
programming & design
Loading...