Table Tennis Problems

Source: Internet
Author: User

Table Tennis problem refers to the back-and-forth call of methods.

1. In the pseudo-intermediary mode (5.5), chatting between boys and girls is typical of table tennis.
Public class boy extends actor {@ override public void send (string message, actor to) {PLN (this. name + "to" +. name + ": \" "+ message +" \ "");. receive (message, this) ;}@ override public void receive (string message, actor from) {char c = (char) (math. random () * 4 + 'A'); If (C! = 'B') {string MSG = message + "" + C; send (MSG, from );}}}
B. Receive (message, this) in the code of object A. Send (string message, actor to), while B. Receive () itself sends (). 2. Some people say that the callback is "you call me, I call you ". I don't want to talk about this kind of error.
3. The command mode table tennis can be seen as the origin of the command mode. The command mode provided directly can be hardly understood, but it is interesting why such a strange idea occurs.
Even if yqj2065 is deduced repeatedly, it is similar to a helper line that needs to be added to the question of ry in the middle school. It can be thought of only by racking your brains or making a smart move, but it is still not used to it.

Table Tennis Problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.