int size = map.size(); String[] keys = map.keySet().toArray(new String[size]); String[] vals = map.values().toArray(new String[size]);
int size = map.size(); String[] keys = new String[size]; String[] vals = new String[size]; int i = 0; for(Map.Entry<String, String> e : map.entrySet()) {
using (FileStream in = new FileStream("in.txt", FileMode.Open)) using (FileStream out = new FileStream("out.txt", FileMode.Create)) { // ...ここで処理 }
try ( FileInputStream in = new FileInputStream("in.txt"); FileOutputStream out = new FileOutputStream("out.txt") ) { // ...ここで処理
FileInputStream in = null; try { in = new FileInputStream("in.txt"); FileOutputStream out = null; try {
FileInputStream in = null; try { in = new FileInputStream("in.txt"); FileOutputStream out = null; try {
FileInputStream in = null; try { in = new FileInputStream("in.txt"); FileOutputStream out = null; try {