SCJP題庫第155題


The doesFileExist method takes an array of directory names representing a path from the root filesystem and a file name. The method returns true if the file exists, false if it does not.
Place the code fragments in position to complete this method.



可拖拉的選項:



Ans:


解說:
doesFileExist方法傳入目錄名稱之一維字串陣列(用以表示相對於根目錄的一個目錄),以及一個檔案名稱,
這個方法回傳
true,當檔案存在的話
false,當檔案不存在的話
此題問程式應該如何寫…

Comments

Popular posts from this blog

Android-使用webview在V3版的Google地圖GPS定位