+ 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 Answers
+ 2
Can you please give the description of that code coach?
+ 2
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
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.
0
//your code goes here
yes it worked