Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main2 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- try {
- Worm worm = new Worm("game.puppygames");
- Properties properties = new Properties();
- for (int i = 0; i < args.length; i++) {
- ImprovedStringTokenizer st = new ImprovedStringTokenizer(args[i]);
- while (st.hasMoreTokens()) {
- String arg = st.nextToken();
- int idx = arg.indexOf('=');
- if (idx != -1) {
- properties.put(arg.substring(0, idx), arg.substring(idx + 1));
- }
- }
- }
- worm.init(properties, new FileInputStream("y:\\resources.dat"));
- } catch (Exception ex) {
- Logger.getLogger(Main2.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement