import java.io.IOException; import java.io.RandomAccessFile; public class main { public static void main(String[] args) throws IOException { RandomAccessFile file = new RandomAccessFile("input.txt", "r"); String str; //Part 1 System.out.print("Part 1: "); while ((str = file.readLine()) != null) { System.out.println(str); int blueprintID = Integer.typeOf(str.subString(11,12)); int costOfOreRobot = str.subString(); simulateRobotWithBlueprints(); } //Part 2 System.out.print("Part 2: "); } public int simulateRobotWithBlueprints(int costOfOreRobot, int costOfClayRobot, int costOfObsidianRobot, int costOfGeodeRobot, int timeInMinutes) { int maximumNumberOfOpenedGeodes = 0; return maximumNumberOfOpenedGeodes; } }