please help with his programming question Which of the following statements does not contain an error? I. System.out.print("/tab Age in Minutes: " + ageInMinutes + "/n"); II. System.out.print("/t Age in Minutes: " + ageInMinutes + "/n"); III. System.out.print("\t Age in Minutes: " + ageInMinutes + "\n");
OK, the change in each of these is pretty obvious, /t, /tab, and \t at the start. Which of those actually adds a tab?
/tab ? @e.mccormick
i meant /t*
You have your slashes confused. =) On this page: http://docs.oracle.com/javase/tutorial/java/data/characters.html Sroll down just a little bit to "Escape Sequences" and you will see it.
Ohh okay so its \t
yah. And since only one answer uses the correct \t...
Thank you!
Join our real-time social learning platform and learn together with your friends!