fork download
  1. package chat;
  2. import java.applet.*;
  3. import java.awt.*;
  4. import java.io.*;
  5. import java.net.*;
  6.  
  7. public class ClientApplet extends Applet{
  8. public void init(){
  9. String host = getParameter("host");
  10. int port = Integer.parseInt(getParameter("Port"));
  11. setLayout( new BorderLayout());
  12. add("Center", new Client(host, port));
  13.  
  14. }
  15.  
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:7: error: class ClientApplet is public, should be declared in a file named ClientApplet.java
public class ClientApplet extends Applet{
       ^
Main.java:12: error: cannot find symbol
        add("Center", new Client(host, port));
                          ^
  symbol:   class Client
  location: class ClientApplet
2 errors
stdout
Standard output is empty