About 55,300 results
Open links in new tab
  1. java - Convert alternate char to uppercase - Stack Overflow

    Jan 20, 2015 · To convert a character to upper case you can do Character.toUpperCase (ch); I suggest you build a StringBuilder from these characters which you can toString () when you …

  2. Converting to upper and lower case in Java - Stack Overflow

    Mar 3, 2010 · I want to convert the first character of a string to Uppercase and the rest of the characters to lowercase. How can I do it? Example: String inputval="ABCb" OR …

  3. converting char array to upper case and use toUpperCase

    For even index, change to upperCase. For odd index, change to lower case. It will be easier if you convert your string into an array of substrings (substring having length 1), instead of converting …

  4. Java - convert each alternate character of string to upper case

    May 2, 2021 · Learn how to convert each alternate character of a string to upper case in java with algorithm, program and explanation.

  5. Convert characters of a string to opposite case - GeeksforGeeks

    Oct 17, 2023 · Given a string, convert the characters of the string into the opposite case,i.e. if a character is the lower case then convert it into upper case and vice-versa. Examples: ASCII …

  6. Convert Alternate Characters of a String to Upper Case

    Learn how to convert alternate characters of a string to upper case in this comprehensive tutorial. Step-by-step code examples included.

  7. Java String toUpperCase() Method - W3Schools

    The toUpperCase() method converts a string to upper case letters. Note: The toLowerCase() method converts a string to lower case letters.

  8. how can i write a java code that convert even characters to uppercase ...

    I take it you want to do two conversions on a character string, the first converting every lower-case character in an even-numbered position in the string to upper-case, and the second …

  9. How to Convert Char to Uppercase/Lowercase in Java

    Feb 2, 2024 · To convert char1 to an uppercase character, we call the toUpperCase() static method from the Character class and pass char1 as an argument. The same goes to convert …

  10. Java String toUpperCase() Method - GeeksforGeeks

    Dec 23, 2024 · In JSTL, the fn:toUpperCase() function is used to transform all the characters in a specified string to uppercase. If the input string is in lowercase, then this function can convert …

  11. Some results have been removed