A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Generate mixed cases of a word
Joined: Mar 22, 2006
Jul 17, 2006 06:21:00
How do I generate different cominations/ mixed cases of a word.
Please let me know .
Joined: Oct 13, 2005
Jul 17, 2006 06:38:00
Have you tried changing your
to a char array and using the toLowerCase and toUpperCase methods of Character?
Joined: Apr 02, 2004
Jul 19, 2006 03:49:00
You could loop through the string, then for each character, you use a random generator to determine 1 or 0, then invoke the toLowerCase or toUpperCase method.
SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
I agree. Here's the link:
subject: Generate mixed cases of a word
test case for servlets
Why can't I code?
generate data population source code for junit?
Dependency Inversion Principle
eclipse and junit - how to generate report?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015