- public static boolean year(int name) throws Exception
- {
- String location="Student"+"/"+name;
- boolean result;
- java.io.File file = new java.io.File(location);
- Scanner output = new Scanner(file);
- for(int i=1;i<=2;i++)
- {
- if (i==2 && output.nextInt()==1)
- {
- result = true;
- break;
- }
- else if (i==2 && output.nextInt()>=2)
- {
- result=false;
- break;
- }
- }
- return result;
- }
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

