Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to uppercase the first letter of a string in java

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

how to make a char uppercase in java

char q = Character.toUpperCase('d');
Comment

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

capitalize string java

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

PREVIOUS NEXT
Code Example
Java :: how to print message to console java 
Java :: convert jython object to java object 
Java :: log errors with stack traces spring 
Java :: nbubble sort java 
Java :: jdbc outside of ide 
Java :: create and populate list one line java 
Java :: getdatetimeinstance android 
Java :: Hibernate/JPA criteria query 
Java :: java find nth largest element using priority queue heap 
Java :: spring generate banner 
Java :: the built-in base class in java, which is used to handle all exceptions is 
Java :: android how to change focus on confirm button on keyboard 
Java :: actionevent java swing 
Java :: number output swing java 
Java :: how many return values can a method hava java 
Java :: Calling the Pre-Defined Method in Java 
Java :: super class and concrete class in java 
Java :: Algorithms - transformation 
Java :: confirm dialog in java 
Java :: variables en java 
Java :: Java Maven Using platform encoding (UTF-8 actually) to read mojo metadata, i.e. build is platform dependent! 
Java :: Detect a face using OpenCV in Java 
Java :: Java Public Access Modifier package one 
Java :: sudo visudo quit without saving 
Java :: Java socket connect to gmail 
Java :: Number Formating in java by javatpoint 
Java :: set class return type by jenric in java 
Java :: excel data formatter in java 
Java :: primefaces p:dataexporter encoding for pdf 
Java :: https://java2blog.com/java-program-count-number-words-string/ 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =