daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest May 14th, 2012 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static boolean year(int name) throws Exception
  2.     {
  3.         String location="Student"+"/"+name;
  4.         java.io.File file = new java.io.File(location);
  5.         Scanner output = new Scanner(file);
  6.         for (int i=0; i<=1;i++)
  7.         {
  8.             if (output.next().equals("1"))
  9.             {
  10.                 return true;
  11.             }
  12.             else
  13.             {
  14.                 return false;
  15.             }
  16.         }
  17.        
  18.     }
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top