jeudi 29 octobre 2015

How to read a multiple String values from text line and store them to a String (java)

My problem is that, I want to read line by line from a text file in java, one line consist of 4 fields but one field can contain multiple words, For Ex.: I have this line: Screen Commercial Problem with product

How can I store this three fields of my line into 3 String variables in java?

var1 -> "Screen"
var2 -> "Commercial"
var3 -> "Problem with product"

Thanks in advance!!!!!!!!

Aucun commentaire:

Enregistrer un commentaire