Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RunnableVersion implements Runnable {
- private Obraz obraz;
- private int id;
- public RunnableVersion(Obraz obraz, int id)
- {
- this.id=id;
- this.obraz=obraz;
- }
- @Override
- public void run()
- {
- String output;
- while((output=obraz.getNextChar())!=null) {
- String runout=" " + "Watek " +id + ": "+ output;
- System.out.println(runout);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement