1314151617181920212223
} WindowFunction window = null; if (args[0].equals("hanning")) { window = new HanningWindow(); } else { System.out.println("unrecognized window function '" + args[0] + "', must be one of: hanning"); System.exit(1); }
1516171819202122232425
} WindowFunction window = null; if (args.length == 3) { if (args[2].equals("hanning")) { window = new HanningWindow(); } else { System.err.println("Invalid window function. I know: hanning"); System.exit(1); } }