How do I read data into objects?

I have this code here, where I have to ask the user for the name of the file and read the data into an object. Here is what I have so far, I have created the file, I have the scanner to read the file, I just do not know how to read data into an object, any input would help a lot.
Package classwork7_4;
import java.util. *;
import *;

public class Classwork7_4 {

public static void main (String[] args) throws IOException {

assembly list travelInfo = new ArrayList <> (10);

Scanner s = new scanner (;

System.out.print ("Enter file name:");
String filename = s.nextLine ();

File f = new file (filename);
Scanner inputFile = new scanner (f);

String info = inputFile.nextLine ();