Capitalize The First Letter of a String in Java #30

preview_player
Показать описание

We can capitalize the first letter of a string by using string methods. In this java tutorial, I show you how to use the substring and toUpperCase methods to create a new string with the first letter capitalized.

I hope this helps you make your java program :) This is GREAT practice for getting your feet wet in java!

I hope you enjoyed java program tutorial!

Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.

Alex Lee
Рекомендации по теме
Комментарии
Автор

Amazing! I just watched ten or more videos trying to figure out how to do just this and finally, it all comes back - once again - to the great ALEX LEE! Cheers, bud! :)

mr.sakowicz
Автор

Man you saved me from my task performance. I've been having a hard time lately so I couldn't focus at school. All your tutorials are very useful. Thank you.

durairuna
Автор

Thank you so much for your videos! They are awesome and I would be really struggling without them

daives
Автор

String a = "Nice vid Alex";
sysout(a);

petarpetrovich
Автор

You are the best Youtuber! I always appreciate your video and again thank you for help to understand me.

jonghyunchoi
Автор

Hey Alex, thank you for your every video as they helped me alot in learning Java! I want u to share some stuff about Java Applets. Thanks alot !

harpreetkaursodhi
Автор

I like the way you teach. Helps me learn quickly.❤️

prernakamble
Автор

Great job here Alex! I have a gut feeling that String methods will be on the 2020 AP CS"A" somewhere so I looked for good videos and found this!

joethompson
Автор

Thanks Alex, your videos really make sense to me👌

janinaalmog
Автор

Thank you. Finally I fount exactly what I was looking for.

beryosa
Автор

public static void main(String[] args) {

//thanks Alex and this another solution using stringbuilder
// happy coding

StringBuilder name = new StringBuilder( "hussam");

String firstLetter = name.substring(0, 1).toUpperCase();



name.deleteCharAt(0);

name.insert(0, firstLetter);

System.out.println(name);
}

HussamAdil
Автор

Alex, I am looking forward to seeing videos of yours explaining more intermediate stuff in Java. Things like... layout managers? Maybe a series of videos on that matter. Stuff like modelling a project, with MVC, maybe? Hope you read this comment. Love your work!

varaujor
Автор

Great video as always. Would be great if you could do a deeper lesson on file handling. You're the best teacher in java!

chazk.official
Автор

Please do the Algorithms and Data Structure Playlist

dhananjayand
Автор

Pls do more video about string methods, this is soo fun!!

hi-vksm
Автор

Good vedio and it very and very helpful

vinukumarvinu
Автор

Thank you, bro.Hope god bless you long life. blessings from my inner heart

brahmanandakabi
Автор

Mate you're a need help I've got an assignment where I need to display my program on the internet, it's a payroll system and another How or what's the code used in order to display it on the internet

jamalj
Автор

You help me a lot, you're a lot better than my prof'

zarllastimadarazon
Автор

Xup Alex ..how do you grow your YouTube channel ? Do you use any tool?

Sport-word