Joke Collection Website - Blessing messages - Java export SMS
Java export SMS
Import java.util.scanner;
Public class entry {
Public static void main (strinargs []) {
Scanner sc = new scanner (system. in);
String pno, msg
System.out.print ("Please enter message content:");
msg = sc . nextline();
System.out.println ("Please enter the target mobile phone number:");
pno = sc . nextline();
short mesg newmsg = new short mesg();
newmsg . set phoneno(pno);
newmsg . set message(msg);
SendMesg send = new SendMesg(newmsg);
send . send();
}
}
Class is called g {
Public abbreviation g(){
}
Private string pno, msg
Public empty phone number (string pno ){ (
this.pno = pno
}
Public string getPhoneNO(){
Return this.pno
}
Public void setMessage (
this.msg = msg
}
Public string getMessage(){
Return this.msg
}
}
Class sends messages {
Private short message MMS;
Public sending MMS (short message MMS) {
this.mms = mms
}
Public void send(){
System.out.println ("SMS content:"+MMS. getmessage ());
System.out.println ("target phone:"+mms.getphoneno ()+"\ n");
}
}
- Related articles
- Xiao Chen, a middle school student, had a conflict and quarrel with Xiao Wu, a net friend. Xiao Chen personally attacked Xiao Wu with foul language on his blog, QQ and SMS.
- Positive pronunciation phonetic symbol
- Pay it back. How long does it usually take for the quota to arrive?
- How to modify the mobile banking payment account of China Construction Bank?
- Sisters love their friends.
- How does Alipay send password red packets to others?
- What should Fujian do if it encounters a fake winning mobile phone text message?
- Excuse me, can I back up the short message icloud of iphone? How to back up?
- How to write a cover letter by sending an email to a postgraduate tutor?
- What does BYD Dolphin remote monitoring monitor?