Code coach problem | SoloLearn: Learn to code for FREE!

+3

Code coach problem

Why not pass I wrote a new line, what is the problem please tell me. Thanks everyone , I solved this problem!

11/27/2020 7:51:31 AM

Daulet

10 Answers

New Answer

+3

Zatch bell yes You want to plan your day and create your to do list. Complete the program to take the names of 3 tasks as input and write them down in the file "tasks.txt", each on a new line. The readFile() method is then used to output the tasks. Sample Code Workout Report Pool Sample Output Workout Report Pool Add \n to the end of each line to create a new line.

+2

Can you please give the description of that code coach?

+2

Daulet.πŸ‡°πŸ‡Ώ , can you try to remove "\r" and leave only "\n" in line 34.

+2

Daulet.πŸ‡°πŸ‡Ώ , then what is the difference between your output and the expected output?

+2

TheWh¡teCat πŸ‡§πŸ‡¬ there are 2 cases, the first one passed 2 no 1) case correctβœ”οΈ Workout Report Pool 2) 2 case I can't see

+2

Daulet.πŸ‡°πŸ‡Ώ , other thing to consider is that in the description is written "take three tasks as a input", so try to remove the part where you write the tasks in line 15.

+2

TheWh¡teCat πŸ‡§πŸ‡¬ Yes, it's works you right thanks!

+2

Daulet.πŸ‡°πŸ‡Ώ , you are welcome 🐱

0

TheWh¡teCat πŸ‡§πŸ‡¬ I tried that, it doesn't work.

0

Operating systems have special characters denoting the start of a new line. For example, in Linux a new line is denoted by β€œ\n”, also called a Line Feed. In Windows, a new line is denoted using β€œ\r\n”, sometimes called a Carriage Return and Line Feed, or CRLF. Adding a new line in Java is as simple as including β€œ\n” , β€œ\r”, or β€œ\r\n” at the end of our string.