Keeps saying it can't find the variable "phone1", but it's decleared right above it!?
Code:
import GSMNetwork.*;
public class send {
public static void main(String[] args) {
try {
MobilePhone phone1 = new MobilePhone("0123456789");
} catch (NetworkNotAvailableException nna) {
System.out.println("Network not available!");
System.exit(1);
}
TextMessage txt = new TextMessage("Hi");
phone1.sendMessage(txt, "9876543210");
}
}