Commit eaec7ebe authored by Michele Fiori's avatar Michele Fiori

Switched logs to english

parent 0f6799fa
No preview for this file type
......@@ -17,6 +17,6 @@ public class Consumer implements Runnable {
}
public void consume(String message) {
System.out.println("Cons. " + id + ": prelevato " + message);
System.out.println("Cons. " + id + ": " + message);
}
}
......@@ -10,7 +10,7 @@ public class Producer implements Runnable {
public void run() {
while (true) {
String message = produce();
System.out.println("Prod. " + id + ": inserisco " + message);
System.out.println("Prod. " + id + ": " + message);
queue.put(message);
try {
......@@ -25,7 +25,7 @@ public class Producer implements Runnable {
public String produce() {
counter++;
return "Messaggio da " + id + " n. " + counter;
return "Message number " + counter + " from " + id;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment