I guess I'm going to use ascii values here, taking a string and converting all letters to lowercase. I'd rather use a for loop than a huge switch statement. How do I do this?

String s = "lowercase";
String s2 = s.toUpperCase();

Remembers Strings are immutable so this won't work:
String s = "lowercase";
s.toUpperCase();

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.