moo.txt

来自「java的一经典教程」· 文本 代码 · 共 31 行

TXT
31
字号
// Prints MOOOO on the screen using two separate methods

public class Moo
{
   public static void bigM()
   {
		System.out.println("M       M");
		System.out.println("MM     MM");
		System.out.println("M M   M M");
		System.out.println("M  M M  M");
		System.out.println("M   M   M");
   }

   public static void bigO()
   {
		System.out.println(" OOOOOOO ");
		System.out.println("O       O");
		System.out.println("O       O");
		System.out.println("O       O");
		System.out.println(" OOOOOOO ");
   }

   public static void main(String[] args)
   {
		bigM();
		bigO();
		bigO();
		bigO();
		bigO();
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?