Mercurial > hg > Database > Alice
view src/alice/test/codesegment/local/wordcount/WordConfig.java @ 242:3bcaf12cf877
use MappedByteBuffer
author | sugi |
---|---|
date | Tue, 16 Apr 2013 18:26:07 +0900 |
parents | 02783f3699b1 |
children |
line wrap: on
line source
package alice.test.codesegment.local.wordcount; public class WordConfig { public String filename; public static String[] array; public int division = 16; public WordConfig(String[] args) { for (int i=0;i<args.length; i++){ if ("-f".equals(args[i])){ filename = args[++i]; } else if ("-d".equals(args[i])){ division = Integer.parseInt(args[++i]); } } if (filename==null){ System.out.println("Usage: WordCount -f FILENAME"); System.exit(0); } } }