Reading and parsing delimited CSV data from a file into an Object in Java

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

OMG your way of teaching is much better than all of the YouTubers I've seen before! Incredible! Very very beginner-friendly! Thank you! :)

Gamuss
Автор

Since today is 30/9/2023 but the video is so usefull for me just becuase it actually help me to figure out how to done my assignment. Thank you so much for the effort

bananaapple
Автор

very very professional explanation! going slowly and clear voice. love it.

AhmedHadiPADI_scuba_instructor
Автор

My first time commenting on a video, but really wanted to say thank-you, very well explained, great help

michaelhutchinson
Автор

What if you have multiple lines and want to create an object for each line and add them in an Array?

gullu
Автор

This was very helpful and easy to understand. Thank you!

williaminfiesto
Автор

This was incredibly helpful for my first project in java. I'm used to C++ but i'm starting to really like java, so easy!

jonathanharris
Автор

Thank you very much! I am working on this assignment for my class and this video helped a lot! :)

gabriel
Автор

how do you read objects from csv and insert them into object class

XSource
Автор

Great Video! Would you be able to do this with one of the aariables as String[ ] rather then just a string?

caseycruz
Автор

What happens when i encounter a blank row while reading the excel.csv file? How do i skip that line whiout any run time error sir?

asharshahab
Автор

I do this instead.
Have your file in myproject/eg/

new FileReader("eg/" + fileName + ".fileextension")

lennysmileyface
Автор

I used the same technique for student detail but do not know how to make that in loop and form a array of student objects

copieselect
Автор

Very good video. Do you have one like with more rows from the file?

mabblers
Автор

Hi Brandon, your tutorial was very useful but I've been having issues with a CSV file, particularly when printing out the cells in the last column of each row within my CSV file. It's like the last cell in the previous row is attached to the first cell in the next row of the file. The cell contents print in the correct position but they print simultaneously as if they are joined together.

For instance, let's say I have a CSV file with the contents:

7, 7, 7, 7
3, 3, 3, 3

When printing each number, the first three sevens in the first row print individually but the last seven prints with the first three in the next row, like so:

1st pass
7,
2nd pass
7, 7,
3rd pass
7, 7, 7,
4th pass
7, 7, 7, 7
3,

My program aims to store each element individually and cannot do so until I figure out how to separate the last and first lines.

Do you have any idea on how to solve this?

SB-ouyp
Автор

What if the file had multiple vehicles, let's say 5, is there a way to do this without manually creating 5 variables for the vehicles?

frankkid
Автор

Lets say that one cars you made had more than one mpg value, how could you represent that on the same line?

marcusdouglas
Автор

my program is not returning correct output for next lines, it is working for first line only

safarnama
Автор

Dear Mr. Brandon, can I get your codes for study?

cithpo
join shbcf.ru