a pastebin project

Miscellany

  1. public class Main
  2. {
  3.         //定義兩個SuperPlayers class的物件作為players
  4.         SuperPlayers Justin;
  5.         SuperPlayers HoYin;
  6.         public Main()
  7.         {
  8.                 Justin=new SuperPlayers("Justin");
  9.                 HoYin=new SuperPlayers("HoYin");
  10.         }
  11.         //宣告Justin物件的attack方法直到任何一方死去
  12.         public void Attack()
  13.         {
  14.         do
  15.         {
  16.         Justin.Attack(HoYin);
  17.         }
  18.         while
  19.         ((Justin.isDead | HoYin.isDead) == false);
  20.         }
  21.                
  22.        
  23.        
  24.         public static void main(String argv[])
  25.         {
  26.                 Main main=new Main();
  27.                 //宣告這個類別的attack方法
  28.                 main.Attack()
  29.         }
  30.  
  31.  
  32.  
  33. }

advertising

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords.

worth-right