Joke Collection Website - Public benefit messages - JAVA defines a telephone class. Define methods to realize the functions of calling, sending short messages and sending multimedia messages respectively, and ask powerful JAVA experts for help.
JAVA defines a telephone class. Define methods to realize the functions of calling, sending short messages and sending multimedia messages respectively, and ask powerful JAVA experts for help.
Public telephone extension thread (
private int telNum
Private int type; //0 SMS, 1 MMS, 3 phone calls
Private string message;
Int telNum (int type, string message) (
this.telNum = telNum
this.type = type
this.message = message
}
//Send SMS
Private void sendMessage(int telNum, string message) (
}
//Send MMS
private void sendColor(int telNum,String message){
}
//Call
Private synchronous invalid call (int telnum) (
}
//Turn off the phone
Private void closeTel(){
}
Public invalid operation () {
if(type==0){
sendMessage(this.telNum,this . message);
}
if(type== 1){
sendColor(this.telNum,this . message);
}
if(type==2){
call(int telNum);
} else { closeTel(); }
}
}
- Previous article:Rong 360 sends short messages
- Next article:How to sign for divorce mediation?
- Related articles
- How to send the short message on the mobile phone to WeChat?
- Qq automatically replies to 79 sentences.
- I didn't apply for a credit card, but I received a text message saying that the credit card application failed.
- How to quickly recover SMS?
- Android G 13, Fetion's quick reply window, the reply message is recorded in the mobile phone information window, yes. ...
- How to check historical customer-level bills through SMS?
- Valentine's Day Fun Talk with Pictures (Tanabata Valentine's Day Fun Talk with Pictures)
- A love letter to the first lover.
- About Suzhou 20 yuan Traffic Cap Card
- What does top money mean in sales? What does top money mean?