0

a Java program that opens three files; even.txt, odd.txt and both.txt.

The both.txt file should have even and odd numbers that the program should read from the both.txt file and write to either even.txt or odd.txt file depending on the number read. I'm a beginner, so your help will be highly appreciated 👏🏾

22nd Jul 2022, 9:39 AM
Daniel Chibwana Jnr
Daniel Chibwana Jnr - avatar
3 odpowiedzi
+ 5
Start learning the basics with the sololearn Java course https://www.sololearn.com/Course/Java/?ref=app If you need help then, please link your code, so we can check on it
22nd Jul 2022, 10:49 AM
Lisa
Lisa - avatar
+ 2
And using the modulo operator (%) will help with sorting out the even and odd numbers.
22nd Jul 2022, 8:23 PM
Ausgrindtube
Ausgrindtube - avatar