Skip to content

Instantly share code, notes, and snippets.

@Christopher-Stolfa
Created June 18, 2019 23:09
Show Gist options
  • Select an option

  • Save Christopher-Stolfa/4f9112426f70220c36d9969534fe2734 to your computer and use it in GitHub Desktop.

Select an option

Save Christopher-Stolfa/4f9112426f70220c36d9969534fe2734 to your computer and use it in GitHub Desktop.
A movie guessing game
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_12" default="true" project-jdk-name="12" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/guessthemovie.iml" filepath="$PROJECT_DIR$/guessthemovie.iml" />
</modules>
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
the shawshank redemption
the godfather
the dark knight
schindler's list
pulp fiction
the lord of the rings
the good the bad and the ugly
fight club
the lord of the rings
forrest gump
star wars
inception
the lord of the rings
the matrix
samurai
star wars
city of god
the silence of the lambs
batman begins
die hard
chinatown
room
dunkirk
fargo
no country for old men
import java.util.Scanner;
import java.io.File;
public class Game {
public static void main(String[] args) throws Exception {
File file = null;
Scanner scanner = null;
try {
file = new File("movies.txt");
scanner = new Scanner(file);
} catch(Exception exception) {
System.out.println(exception);
}
}
}
public class Movie {
private String name;
}
public class MovieList {
private Movie[] movies;
private int size = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment