- public static boolean year(int name) throws Exception
- {
- String location="Student"+"/"+name;
- java.io.File file = new java.io.File(location);
- Scanner output = new Scanner(file);
- for (int i=0; i<=1;i++)
- {
- if (output.next().equals("1"))
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- }
SHARE
TWEET
Untitled
a guest
May 14th, 2012
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

