i'm new to Java . How can i obtain right values of each line (second value of the dash separated pair)
Autorul-Stefan
DenumireaCartii-Popovici
CuloareaCartii-Verde
GenulCartii-Religie
Limba-Rusa
SOLVED :
String line = "Autorul-Stefan";
String [] fields = line.split("-");
fields[0] == "Autorul"
fields[1] == "stefan"