Banker 175 Share Posted January 17, 2017 Hey, so im working on something but how would i get the arguments from a message for example > test <arg1> <arg2> ... how would i go about getting both arg1 and arg2? Thanks. Link to comment Share on other sites More sharing options...
Pandemic 2675 Share Posted January 17, 2017 String message = m.getMessage(); // test arg1 arg2 String args[] = message.split(" "); // args[1] = "arg1", args[2] = "arg2" Link to comment Share on other sites More sharing options...
Banker 175 Author Share Posted January 17, 2017 String message = m.getMessage(); // test arg1 arg2 String args[] = message.split(" "); // args[1] = "arg1", args[2] = "arg2" THANK YOU Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.