Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

capitalize string java

String str = "hello world!";

// capitalize first letter
String output = str.substring(0, 1).toUpperCase() + str.substring(1);

// print the string
System.out.println(output);
// Hello world!
Comment

uppercase string java

String var_name = "Jerry";
System.out.println(var_name.toUpperCase()); //JERRY
Comment

is upper in java

if (Character.isUpperCase(val)) {
   System.out.println("Character is in Uppercase!");
}else {
   System.out.println("Character is in Lowercase!");
}
Comment

uppercase java

string s="hello";
s = Character.toUpperCase(s.charAt(0)) + s.substring(1);
The output will be: Hello
Comment

capitalize string java

String str = "java";
String cap = str.substring(0, 1).toUpperCase() + str.substring(1);
Comment

PREVIOUS NEXT
Code Example
Java :: java format use same value multiple times 
Java :: permission foreground_service 
Java :: How to swap two values in Java using a supporting method? 
Java :: how to make a copy of an array java 
Java :: define a list java 
Java :: java get year month day hour minute second 
Java :: flow dependency android 
Java :: retrofit implementation 
Java :: android list index 
Java :: java mp3 player 
Java :: java how to get all threads 
Java :: how to check if a string is numeric 
Java :: iterate map in java 8 using stream 
Java :: android recyclerview item click listener 
Java :: how to check if string is double or not in java 
Java :: java.lang.RuntimeException: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-20.0.jar (com.google.guava:guava:20.0) and listenablefuture-1.0.jar (com.google.guava:listenablefuture:1.0) 
Java :: convert arraylist to array in java 
Java :: how to declare and insert value to arraylist in same line in java 
Java :: how to remove duplicate elements from char array in java 
Java :: array java 
Java :: how to modify string in java 
Java :: how to find numbers of digits in java 
Java :: check how many times a character appears in a string java 
Java :: android application class manifest 
Java :: arraylist of double 
Java :: Java Read a Line of Text Using Scanner 
Java :: java type casting 
Java :: worldedit api paste schematic 
Java :: statusbar text color android 
Java :: java replace element in list 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =