Guest User

Untitled

a guest
Apr 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. public static void main(String[] args) {
  2.  
  3. Scanner scanner = new Scanner(new BufferedInputStream(System.in), "UTF-8");
  4. String string = "";
  5.  
  6. while (true)
  7. {
  8. Scanner lineScanner = new Scanner(scanner.nextLine());
  9. ArrayList options = new ArrayList();
  10.  
  11. while (lineScanner.hasNext())
  12. options.add(lineScanner.next());
  13.  
  14. String[] stringArray = (String[])options.toArray(new String[options.size()]);
  15. oldMain(stringArray);
  16. }
  17. }
  18.  
  19. public static void oldMain(String[] args) {
  20. errorReporter = new ToolErrorReporter(false, global.getErr());
  21. shellContextFactory.setErrorReporter(errorReporter);
  22. IProxy iproxy = new IProxy(IProxy.PROCESS_FILES, processOptions(args));
  23. global.init(shellContextFactory);
  24. shellContextFactory.call(iproxy);
  25. }
Add Comment
Please, Sign In to add comment