Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class C_Info extends Thread {
- @Override
- public void run() {
- while (C_Citac.hotovo == false) {
- System.out.println(C_Citac.suma);
- Thread.yield();
- }
- System.out.println(C_Citac.suma);
- }
- public static void main(String[] args) {
- C_Citac vlCitanie = new C_Citac("data.txt");
- vlCitanie.start();
- C_Info vlInfo = new C_Info();
- vlInfo.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment