nakanilog

おぼえておきたい事をざっくりとメモするブログ

2018-01-01から1年間の記事一覧

try-with-resources文(try~chatchにおけるリソース解放処理の効率的な書き方)

Java SE 7 よりtry~chatchにおけるリソース解放処理を簡素に記述できるようになった。 <try-with-resources文を使わない場合>FileInputStream fs = null; try { fs = new FileInputStream(filePath); (ファイル処理)} catch (IOException e) { e.printS…

関数でファイルパス・ファイル名を取得する

■ファイルパス=CELL("FILENAME") ■ファイル名=REPLACE(LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),1,FIND("[",CELL("filename",A1)),)

Tomcat開発環境構築メモ

1)Eclipse(Pleiades All in One パッケージ)のダウンロード Pleiades 公式サイト(http://mergedoc.sourceforge.jp/) 今回ダウンロードしたのは Pleiades All in One 4.7.2.v20171225(Java Windows 64bit Full Edition) ※Full Edition は JDK、Tomcat…