About 358,000 results
Open links in new tab
  1. java - How do you convert multiple lines of String input to Upper Case

    I am looking to convert multiple lines of input until the EOF (ctrl+d) to Uppercase. What can be used to print out the same multiple lines all in Uppercase? For example, input and output would look like: car bus taxi CAR BUS TAXI with the repeated lines in Uppercase.

  2. Java String toUpperCase() Method - W3Schools

    Convert a string to upper case and lower case letters: String txt = "Hello World"; System.out.println(txt.toUpperCase()); System.out.println(txt.toLowerCase()); Try it Yourself »

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

    Oct 23, 2016 · 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 "a123BC_DET" or "aBcd" String out...

  4. 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 all the characters into uppercase. In this article, we will see the Syntax along with Parameters and detailed impleme

  5. Converting a line of words from lower case to upper case

    Aug 7, 2014 · I would like to convert a line of words, including punctuation and spaces, from lower case to upper case. My method to deal with the question is to firstly store the sentence in String form, then apply the "toUpperCase" Java class to it like this:

  6. java for complete beginners - uppercase, lowercase - Home and …

    Converting your Java strings of text to upper or lower case is fairly straightforward: just use the inbuilt methods toUpperCase and toLowerCase. Start a new project for this, and add the following code: The first two lines of code just set up a String variable to hold the text "text to change", and then we print it out.

  7. Java String toUpperCase() - Convert To Uppercase | Vultr Docs

    Apr 10, 2025 · Explore the basic usage of converting strings to uppercase in Java, handling locale-specific conversions, and integrating this method in real-world Java applications. This guide covers everything you need to know about using toUpperCase in Java.

  8. Java String toUpperCase() Method Examples

    Jul 24, 2019 · Java String toUpperCase() method converts the string into the upper case. The characters in the string are converted to the upper case using the Locale rules. This method is locale-specific.

  9. How to Convert String to Upper Case in Java? - smolkit.com

    Jul 3, 2023 · Converting a string to upper case in Java is straightforward using the built-in toUpperCase() method. Additionally, the overloaded version of toUpperCase() with the Locale parameter allows you to handle case conversion based on specific language rules.

  10. Java String to Uppercase - DigitalOcean

    Aug 4, 2022 · Java String to uppercase conversion can be done using toUpperCase() method. Java String toUpperCase() method has two variants - toUpperCase() and toUpperCase(Locale locale). Conversion of the characters to upper case is done by using the rules of default locale. Calling toUpperCase() function is same as calling toUpperCase(Locale.getDefault()).

Refresh