Snippets tagged “character”
2 snippets use this tag.
- How to capitalize the first letter of a String in Java?Java
To capitalize the first letter of a string in Java, you can use the toUpperCase method of the java.lang.String class. Here's an example of how you can do this:
- Java: parse int value from a charJava
To parse an integer value from a char in Java, you can use the Character.getNumericValue() method.