for /r %i in (*) do type %i|findstr/n ^^|findstr " ^30[6-9]: black bluefor /r %i in(*) do type %i|findstr/n ^^|findstr " ^30[6-9]: black blue >>save.txt
我需要使用什么语法?
现在,我已经学习了这次的DoWhile循环,但我的问题是扫描仪。我想以字符串的形式接收输入,但当我这样做时在do之外,它表示不能将y或yes解析为变量。一位朋友推荐了switch cases,你觉得呢?String a = sc.nextLine(); wow(); //My method name
}while(a == y); //Error is here