08.04.2013 Views

IMDB Data Set Topics: Parsing Input using Scanner class

IMDB Data Set Topics: Parsing Input using Scanner class

IMDB Data Set Topics: Parsing Input using Scanner class

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Sample input file<br />

• Format: key = value<br />

Example<br />

height = 167cm<br />

mass = 65kg<br />

disposition = "grumpy"<br />

this is the name = this is the value<br />

• Strategy: read line by line. Use "=" as a<br />

seperator to extract key and value. Store<br />

in a list.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!