`

PingPong or PongPing

    博客分类:
  • Java
阅读更多

public class PingPong {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public  static void main(String[] args) throws Exception {
		Thread t = new Thread() {
			@Override
			public void run() {
				pong();
			}
		};
		t.start(); //	not	t.run();

//		Thread.sleep(3000);
//		t.join(); //wait it finish
		System.out.print("Ping");
	}

	private static  void pong() {
		System.out.print("Pong");
	}
}

分享到:
评论

相关推荐

    kivy-pingPong_Game

    kivy-pingPong_Game 乒乓球游戏应用程序在这里 但是您必须下载从虚拟环境开始的kivy和后续库,强烈建议: # For windows users python -m virtualenv kivy_venv kivy_venv\Scripts\activate source kivy_venv/...

    Animation GIF ActiveX 2.0

    Animation GIF ActiveX 2.0 has many new features including AutoSize, Stretch, custom playing sequence (reverse, pingpong or user-defined), etc. You can bind the GIF property in version 2.0 to database ...

    Camera Path Animator 3.61

    Camera Path Animator - Animate Cutscenes with Splines 3.61 Unity 5 compatible Create, edit and preview camera ...track target, loop, ping pong Mature, stable codebase. No DLLs, full source included

    Camera Path Animator v3.5c.zip

    track target, loop, ping pong Mature, stable codebase. No DLLs, full source included The package provides you with all the tools to build, edit, and preview the animation spline within the editor.

    subscriptions-transport-ws:用于GraphQL订阅的WebSocket客户端+服务器

    图形库 没有积极维护subscriptions-transport-ws库。 建议您改用库。 有关详细信息,请阅读公告。 subscriptions-transport-ws ...Or, using NPM: $ npm install --save subscriptions-transport-ws 请注意,您

    SX12xxDrivers-V2.1.0 官网资料.rar

    SX1268官方驱动下载(包含sx1278),非常齐全...By default the PING-PONG app acts as Master. If another Master is already running the application will switch automatically to Slave and the PING-PONG starts.

    Teach Your Kids to Code: A Parent- Friendly Guide to Python Programming 2015

    Write programs to encode and decode messages, play Rock-Paper-Scissors, and calculate how tall someone is in Ping-Pong balls Create fun, playable games like War, Yahtzee, and Pong Add interactivity, ...

    EDA课程设计

    type pingpong is (waitserve,light1on,ballmoveto2,allow2hit, light8on,ballmoveto1,allow1hit); ---设置7个状态,为枚举数据类型,记为pingpong signal state:pingpong; signal i:integer range 0 to 8; signal ...

    Java™ Puzzlers: Traps, Pitfalls, and Corner Cases.chm

    Puzzle 76: Ping Pong Puzzle 77: The Lock Mess Monster Puzzle 78: Reflection Infection Puzzle 79: It's a Dog's Life Puzzle 80: Further Reflection Puzzle 81: Charred Beyond Recognition Puzzle 82: Beer ...

    telegram-bot:Telegram的Bot API的另一个客户端

    TelegramBotRuby 安装 将此行添加到您的应用程序的Gemfile中: gem 'telegram_bot_ruby' 然后执行: $ bundle 或将其自己安装为: $ gem install telegram_bot... on :command , 'ping' do # /ping reply 'pong' en

    discord.v:用V编写的Discord Bot框架

    用V ( WIP )编写的又一个功能丰富的Discord Bot框架 例子 import terisback.discordv as vd fn main () { mut client := vd.... client. on_message_create (on_ping) ... ' ) or { } } } 更多 如何安装 di

    20xx年七年级下学期期末考试英语试题(B卷).doc

    Kate can play _________ guitar very well, but she can’t play __________ping-pong. A. the, the B. the, / C. /, the ( )27. — Can you sing or dance? —________. A. Yes, I can B. I can sing C. ...

    Java解惑(谜题)CHM中英文双版本

    Puzzle 76: Ping Pong Puzzle 77: The Lock Mess Monster Puzzle 78: Reflection Infection Puzzle 79: It's a Dog's Life Puzzle 80: Further Reflection Puzzle 81: Charred Beyond Recognition ...

Global site tag (gtag.js) - Google Analytics