kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Get all kandi verified functions for this library.
Gitee Pages: https://doocs.gitee.io/advanced-java
GitHub Pages: https://doocs.github.io/advanced-java
See all related Code Snippets
I reached 'fetch' method...
A simple question (complicated for me) ... How to use 'fetch()' method, 'split()' and '\ n' together?
I will show you an example (i am here to learn and master some skills and i am not ashamed to ask):
I need to read and print the following data using the 'fetch' method:
And that is quite clear to me! I managed to do that!
my result (wrong result): enter image description here
correct result: enter image description here
My question is: After reading the data from the file, I have to parse them and create Student objects based on them. Parsing can be done using the split () method of the String object. It is best to divide the read text by line breaks, specifying "\ n" for the split () method parameter.
thanks in advance :)
ANSWERAnswered 2021-Oct-29 at 12:48
here is a fast example of parsing your data to an array of objects as i think this is the only thing you ask here, from there you can loop that array and display the object as you need.
No vulnerabilities reported
Open Weaver – Develop Applications Faster with Open Source