public static class Message {
public static final int HELLO = 0;
public static final int GOODBYE = 1;
private String message;
private int status;
...
}
public static class Message {
public static final int HELLO = 0;
public static final int GOODBYE = 1;
private String message;
private int status;
...
}
Copy to ClipboardCopied!Toggle word wrapToggle overflow
The single class used in this example has two fields: the message, which is a String, and the status which can be one of the two integers HELLO or GOODBYE.