I don't know if it has anything to do with the actual error, but "Public" is definitely NOT capitalized.
|
.\src\Server.java:112: ';' expected
Public Cooking cooking = null;
^
.\src\Server.java:113: <identifier> expected
Cooking cooking = new() Cooking;
^
.\src\Server.java:113: ';' expected
Cooking cooking = new() Cooking;
^
.\src\Server.java:113: not a statement
Cooking cooking = new() Cooking;
^
4 errors
Press any key to continue . . .
I don't know if it has anything to do with the actual error, but "Public" is definitely NOT capitalized.
.\src\Server.java:24: <identifier> expected
Cooking cooking = new() Cooking;
^
.\src\Server.java:24: ';' expected
Cooking cooking = new() Cooking;
^
.\src\Server.java:24: <identifier> expected
Cooking cooking = new() Cooking;
^
3 errors
Press any key to continue . . .
could you paste the code that is 5 lines above and 5 lines below? plus please use the CODE bbcode when posting a code please.
Show me everything from Server.java above line 24
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Properties;
public class Server implements Runnable {
public static ArrayList<String> banned = new ArrayList<String>();
public static ArrayList<Integer> bannedUid = new ArrayList<Integer>();
public static Server clientHandler = null; // handles all the clients
public static java.net.ServerSocket clientListener = null;
public static int MaxConnections = 100000;
public static int[] ConnectionCount = new int[MaxConnections];
public static ArrayList<String> connections = new ArrayList<String>();
public static String[] Connections = new String[MaxConnections];
public static DoorHandler doorHandler;
public static GraphicsHandler GraphicsHandler = null;
public static ItemHandler itemHandler = null;
public static Wearing Wearing = null;
public static Specials special = null;
public Cooking cooking = null;
Cooking cooking = new() Cooking;
public Cooking cooking = null;
Cooking cooking = new() Cooking;
to
Code:public Cooking cooking = new Cooking();
Not trying to be offensive but
http://java.sun.com/docs/books/tutorial/
it can't hurt mate.
Shouldnt it be
public static Cooking cooking = null;
cooking = new Cooking();
okay
Put that under mainCode:Cooking cooking = new() Cooking;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |