Advertisement
Guest User

MAIN

a guest
Jan 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. package rs.ac.bg.etf.kdp.sanja.test;
  2.  
  3. import rs.ac.bg.etf.kdp.sanja.gui.Get;
  4. import rs.ac.bg.etf.kdp.sanja.gui.Put;
  5. import rs.ac.bg.etf.kdp.sanja.interfaces.MessageBox;
  6. import rs.ac.bg.etf.kdp.sanja.net.RemoteMessageBox;
  7.  
  8. public class Test {
  9.  
  10. @SuppressWarnings("unused")
  11. public static void main(String[] args) {
  12. // String host = args[0];
  13. // int port = Integer.parseInt(args[1]);
  14. String host = "localhost";
  15. int port = 5678;
  16. // MessageBox<String> buffer = new ListMessageBox<>(2);
  17. // MessageBox<String> buffer = new LockMessageBox<>(2);
  18. MessageBox<Object> buffer = new RemoteMessageBox<>(host, port);
  19. Put put = new Put(buffer);
  20. Get get = new Get(buffer);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement