File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
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
It is sorta covered in the
JavaRanch Style Guide
subject: Generate mixed cases of a word
generate data population source code for junit?
eclipse and junit - how to generate report?
Why can't I code?
test case for servlets
Dependency Inversion Principle
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014