mredge73
Member
Ahhh....
I don't want to ask this question...
This should be simple but I am getting frustrated and I cannot find it in the wiki or in these forums and on yahoo it says that java uses lots of different end of line characters so this is what I tried:
print("I want to put: " + "/n" +" this on another line.");
print("I want to put: /n this on another line.");
print("I want to put: " + "/r/n" +" this on another line.");
print("I want to put: /r/n this on another line.");
print("I want to put: " + "\n" +" this on another line.");
print("I want to put: \n this on another line.");
print("I want to put:/nthis on another line.");
print("I want to put:" +"/endl" +" this on another line.");
print("I want to put:" +"\endl" +" this on another line.");
print("I want to put:" +"/l" +" this on another line.");
print("I want to put:" +"\l" +" this on another line.");
Here is my output:
I want to put: /n this on another line.
I want to put: /n this on another line.
I want to put: /r/n this on another line.
I want to put: /r/n this on another line.
I want to put: this on another line.
I want to put: this on another line.
I want to put:/nthis on another line.
I want to put:/endl this on another line.
I want to put:\endl this on another line.
I want to put:/l this on another line.
I want to put: this on another line.
Can anyone help me?
I don't want to ask this question...
This should be simple but I am getting frustrated and I cannot find it in the wiki or in these forums and on yahoo it says that java uses lots of different end of line characters so this is what I tried:
print("I want to put: " + "/n" +" this on another line.");
print("I want to put: /n this on another line.");
print("I want to put: " + "/r/n" +" this on another line.");
print("I want to put: /r/n this on another line.");
print("I want to put: " + "\n" +" this on another line.");
print("I want to put: \n this on another line.");
print("I want to put:/nthis on another line.");
print("I want to put:" +"/endl" +" this on another line.");
print("I want to put:" +"\endl" +" this on another line.");
print("I want to put:" +"/l" +" this on another line.");
print("I want to put:" +"\l" +" this on another line.");
Here is my output:
I want to put: /n this on another line.
I want to put: /n this on another line.
I want to put: /r/n this on another line.
I want to put: /r/n this on another line.
I want to put: this on another line.
I want to put: this on another line.
I want to put:/nthis on another line.
I want to put:/endl this on another line.
I want to put:\endl this on another line.
I want to put:/l this on another line.
I want to put: this on another line.
Can anyone help me?