Home > Back-end >  For help
For help

Time:05-12

This why don't pick up, and the last one, can not know

CodePudding user response:

You are the first printed in two statements,... Ln the meaning of this is line output, the second is a statement to print, you won't break,
You write a different statement, is there any question

CodePudding user response:

The code can cut all

CodePudding user response:

The
refer to the original poster weixin_52862909 response:
this why don't pick up, and the last one, can not know


I've tested the following code, other places may be wrong, or the output error screenshot

 
String st="d: \ ";
String add="school of media in";
String String=st + "\ " + add;
System. The out. Println (string);
System. The out. Println (string + ". TXT ");
System. Out. Println (" d: \ \ \ \ school of media and "+". TXT ");


The console output
 
D: \ \ always school of media in
D: \ \ always in the school of media. TXT
D: \ \ always institute of media and communication. TXT

CodePudding user response:

do not have what problem

CodePudding user response:

Your code to run is the main method exp5_2 this file, but your file is selected exp5_3, you see exp5_2 this file, run it

CodePudding user response:

reference qq_39936465 reply: 3/f
Quote: refer to the original poster weixin_52862909 response:
this why don't pick up, and the last one, can not know


I've tested the following code, other places may be wrong, or the output error screenshot

 
String st="d: \ ";
String add="school of media in";
String String=st + "\ " + add;
System. The out. Println (string);
System. The out. Println (string + ". TXT ");
System. Out. Println (" d: \ \ \ \ school of media and "+". TXT ");


The console output
 
D: \ \ always school of media in
D: \ \ always in the school of media. TXT
D: \ \ always institute of media and communication. TXT

In theory, should be you this way of output
  • Related