You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MainWriter.java 408B

1234567891011121314
  1. public class MainWriter {
  2. public static void main(String[] args) {
  3. if (args.length > 0) {
  4. if ("err".equals(args[0])) {
  5. System.err.println("System.err");
  6. } else if ("out".equals(args[0])) {
  7. System.out.println("System.out");
  8. } else if ("Error".equals(args[0])) {
  9. throw new Error();
  10. }
  11. }
  12. }
  13. }