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
14 Réponses
+ 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?
+ 2
Avinesh Thanks :)
+ 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.
+ 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
+ 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
+ 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.
0
Ok. Just a moment
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.
0
Thank you!
0
Ivan
I will run it in my ide. Needs a bit time ;)
0
thank you all for your help)))
0
if there are still options write
0
https://code.sololearn.com/cw3pk2UCKEco/?ref=app
Your package could not be found that's why this error came...
0
Alguien abla español??