javaプログラム
javaプログラム 初級プログラマ作
どうぞ!!
関連タイピング
問題文
ふりがな非表示
ふりがな表示
(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