Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. public class RunnableVersion implements Runnable {
  3. private Obraz obraz;
  4. private int id;
  5.  
  6.  
  7. public RunnableVersion(Obraz obraz, int id)
  8. {
  9.  
  10.  
  11. this.id=id;
  12. this.obraz=obraz;
  13.  
  14.  
  15. }
  16.  
  17. @Override
  18. public void run()
  19. {
  20. String output;
  21. while((output=obraz.getNextChar())!=null) {
  22. String runout=" " + "Watek " +id + ": "+ output;
  23.  
  24. System.out.println(runout);
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement