0

What's wrong? JAVA

Write an application that allows you to download and save data about objects of the ClientBank class described by: • Second name, • First name, • account number, • account balance. Object data should be stored in a text file. It should be in the application supported defined file format exception. https://code.sololearn.com/cgnuR40KW73E/#java

20th Jan 2020, 3:17 PM
Ivan
14 ответов
+ 4
On sololearn you can't work with files. Did you tried your program on your pc? If yes, can you describe what went wrong?
20th Jan 2020, 3:53 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Avinesh Thanks :)
20th Jan 2020, 6:22 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Try to explain the part that went wrong or something that you couldn't understand because like Denise Roßberg mentioned, we cannot run it on the code playground to exactly see what the error might be.
20th Jan 2020, 4:02 PM
Avinesh
Avinesh - avatar
+ 1
See if this answers any part of your question because when you try to write an object to a text file then it is not stored as a human readable text as you would get on your console. https://www.sololearn.com/discuss/2121632/?ref=app
20th Jan 2020, 4:22 PM
Avinesh
Avinesh - avatar
+ 1
Avinesh It writes a binary file? Ivan I think you should have to look into this tutorial how to write/read files. https://www.baeldung.com/java-write-to-file
20th Jan 2020, 4:52 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Denise Roßberg Yes, it does. Somewhat similar to a class file. You can go through the link provided in the post that I shared to have a better understanding.
20th Jan 2020, 5:06 PM
Avinesh
Avinesh - avatar
0
Ok. Just a moment
20th Jan 2020, 4:05 PM
Ivan
0
When I run the code, then after, in the new text, some characters are obtained, for example:р"?%ДLjava.lang.String; TVzj... This is a task: Write an application that allows you to download and save data about objects of the ClientBank class described by: • Second name, • First name, • account number, • account balance. Object data should be stored in a text file. It should be in the application supported defined file format exception.
20th Jan 2020, 4:11 PM
Ivan
0
Thank you!
20th Jan 2020, 4:11 PM
Ivan
0
Ivan I will run it in my ide. Needs a bit time ;)
20th Jan 2020, 4:19 PM
Denise Roßberg
Denise Roßberg - avatar
0
thank you all for your help)))
20th Jan 2020, 5:20 PM
Ivan
0
if there are still options write
20th Jan 2020, 5:24 PM
Ivan
0
https://code.sololearn.com/cw3pk2UCKEco/?ref=app Your package could not be found that's why this error came...
21st Jan 2020, 8:19 PM
Droider
Droider - avatar
0
Alguien abla español??
22nd Jan 2020, 9:05 AM
El Hakkerr.s
El Hakkerr.s - avatar