javaプログラム

関連タイピング
-
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数35万1071打 -
プログラミングを学びたい方は是非!2025/05/21公開
プレイ回数148610打 -
プレイ回数99短文英字26打
-
javaやpythonのコードを打つタイピングです
プレイ回数738長文60秒 -
右端の下の『\』およびshift文字『?』『*』『_』の練習
プレイ回数2156長文425打 -
プレイ回数770英語長文211打
-
C#のプログラム一つを書こう
プレイ回数2486英字610打 -
Javaの基本構文です
プレイ回数2412長文英字90秒
問題文
(publicclasssample{)
public class Sample{
(publicstaticvoidm(string[]args){)
public static void m(String[] args){
(try{)
try{
(deletefortemporaryfiles(”app”);)
deleteForTemporaryFiles("App");
(}catch(ioexceptione){)
}catch(IOException e){
(e.printstacktrace();)
e.printStackTrace();
(})
}
(for(stringdir)throwsioexception{)
for(String dir) throws IOException{
(file[]file=newfile(dir).list();)
File[] file = new File(dir).list();
(if(files!=files.length>0){)
if(files != files.length > 0){
(for(filefile:files){)
for(File file : files){
(if(file.isdirectory()){)
if(file.isDirectory()){
(delete(file.getabsolutepath());)
delete(file.getAbsolutePath());
(}else{)
}else{
(if(file.getname().endswith(”.tmp”))})
if(file.getName().endsWith(".tmp"))}
(file.delete();)
file.delete();
(p363)
p363