private static void separateIntoTokens(ArrayList<String> tokens, ArrayList<Integer> flags, String line)
	{
		flagOperations(flags,line);
		
		int flag, previousFlag = -1;

		if(flags.size() == 0)
		{
			tokens.add(line);
		}
		else
		{
			for(int n=0;n<flags.size();n++)
			{
				//get the next flag
				flag = flags.get(n);
				
				//add the substring
				tokens.add(line.substring(previousFlag+1,flag));
				//add the operation at the flag
				tokens.add(line.substring(flag,flag+1));
				
				//set the next flag
				previousFlag = flag;
			}	
		//get the last token
		tokens.add(line.substring(flags.get(flags.size()-1)+1));
		}
	}