Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void run() {
- try {
- Scanner s = new Scanner(f);
- while (isRunning) {
- try {
- if (s.hasNext()) {
- text.put(s.next());
- } else {
- isRunning = false;
- }
- } catch (InterruptedException ex) {
- Logger.getLogger(inputClass.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
- } catch (FileNotFoundException ex) {
- Logger.getLogger(inputClass.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement