Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String[] handle(int message) throws IOException {
- BufferedReader br;
- String[] temp = null;
- String line = null;
- temp = new String[10];
- switch (message) {
- case 1:
- br = new BufferedReader(new FileReader("images/wyniki.txt"));
- String line = br.readLine();
- int i=0;
- while (line = br.readLine() && line != null || i<10) {
- temp[i] = line + "-";
- System.out.println(temp[i]+"\n");
- i++;
- }
- break;
- case 2:
- temp[] = null;
- System.out.println("Karny kutas");
- break;
- default:
- temp[] = null;
- System.out.println("bartek to chuj");
- }
- return temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement