Hello,
I posted something about this a couple weeks ago and was pointed into the right direction, but lack of time with school and other projects at work, i haven't been able to sit down and figure out how to accomplish this task and the code that i need to do it.
Here is my situation.
I have been asked to attempt to develop code that will alphabetize parameters after the input has been broken up by this code(which was given to me).....
[CODE=java]int questionPos = inUrl.indexOf(" ?");
if (questionPos >= 0) {
StringBuffer sb = new StringBuffer(in Url.substring(0 , questionPos + 1));
StringTokenizer tokenizer = new StringTokenizer (inUrl.substrin g(questionPos + 1), "&", true);
while (tokenizer.hasM oreTokens()) {
String key = tokenizer.nextT oken();
}
}[/CODE]
In my searching and suggestions I have received, doing this could be done by
Arrays.sort()
or
Collections.sor t()
My issue is I do not know where/how to begin developing code for this. I just looked at Java/Java script for the 1st time a couple weeks ago, so I am completely clueless.
Here is an example of the input
[CODE=html]Ex. input: <a href="/ffw/funds/divcapgains.do? year=2007&order by=data_1&order key=DESC">Feder ated Fund Name</a>[/CODE]
If someone could help me develop code for this so that i can begin to get my feet wet and have something to build off of i would greatly appreciate it.
I posted something about this a couple weeks ago and was pointed into the right direction, but lack of time with school and other projects at work, i haven't been able to sit down and figure out how to accomplish this task and the code that i need to do it.
Here is my situation.
I have been asked to attempt to develop code that will alphabetize parameters after the input has been broken up by this code(which was given to me).....
[CODE=java]int questionPos = inUrl.indexOf(" ?");
if (questionPos >= 0) {
StringBuffer sb = new StringBuffer(in Url.substring(0 , questionPos + 1));
StringTokenizer tokenizer = new StringTokenizer (inUrl.substrin g(questionPos + 1), "&", true);
while (tokenizer.hasM oreTokens()) {
String key = tokenizer.nextT oken();
}
}[/CODE]
In my searching and suggestions I have received, doing this could be done by
Arrays.sort()
or
Collections.sor t()
My issue is I do not know where/how to begin developing code for this. I just looked at Java/Java script for the 1st time a couple weeks ago, so I am completely clueless.
Here is an example of the input
[CODE=html]Ex. input: <a href="/ffw/funds/divcapgains.do? year=2007&order by=data_1&order key=DESC">Feder ated Fund Name</a>[/CODE]
If someone could help me develop code for this so that i can begin to get my feet wet and have something to build off of i would greatly appreciate it.
Comment