import java.util.Scanner;
public class YuGiOh
{
public static void main ( String[] args )
{
Scanner c = new Scanner (System.in);
String type = c.next ();
if (type.startsWith ("y"))
{
System.out.println ("run");
}
else
{
c.close ();
}
}
}
得到的输入结果截取字符串一下
type.substring(0,1); //取得第一个字母