Code example for StringTokenizer

Methods: countTokensnextToken

0
	} 
	 
	@Override 
	public void onBypassFeedback(L2PcInstance player, String command)
	{ 
		StringTokenizer st = new StringTokenizer(command, " ");
		String actualCommand = st.nextToken(); // Get actual command
		 
		String par = "";
		if (st.countTokens() >= 1)
			par = st.nextToken();
		 
		if (actualCommand.equalsIgnoreCase("select"))
		{ 
			int val = 0;
			try 
			{ 
				val = Integer.parseInt(par);
			} 
			catch (IndexOutOfBoundsException ioobe){}
Stop searching for code, let great code find you!  Add Codota to your java IDE