Capitalize The First Letter of a String in Java #30

Capitalize The First Letter of a String in Java #30

Alex Lee

4 года назад

37,570 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Amit Yadav
Amit Yadav - 27.07.2023 10:25

Hey Alex! What to do if I want every first letter of the word in Capital? Lets's say there is "hello alex good morning" and i want "Hello Alex Good Morning" . What will be the program?

Ответить
DrowningInPains
DrowningInPains - 17.03.2023 09:20

How can I ignore the first index of a word?

Ответить
Balabhadra Sairam
Balabhadra Sairam - 20.02.2023 13:31

For birthday we need capital B means

Ответить
Courses
Courses - 17.01.2023 04:01

It is my birthday. Now I am master of lowercaases.

Ответить
Dura Iruna
Dura Iruna - 26.11.2022 12:46

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.

Ответить
Amanda Kalo
Amanda Kalo - 02.11.2022 01:42

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

Ответить
Atharv Soni
Atharv Soni - 12.10.2022 16:38

I dont think anyone would be watching your video on their birthday

Ответить
Sina
Sina - 29.09.2022 17:53

Your vidoes help me a lot.

Ответить
bashar dd
bashar dd - 29.08.2022 16:20

amazing

Ответить
Trường Hồ
Trường Hồ - 27.08.2022 11:47

Hi @alex lee. How could I keep the same with a word that only has 1 letter? Mean that my input is :"this is a book" then return: "This Is a Book"
Thanks you

Ответить
Brahmananda Kabi
Brahmananda Kabi - 17.08.2022 20:29

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

Ответить
Jotaro Kujo
Jotaro Kujo - 22.04.2022 15:08

thank you so much

Ответить
Prerna Kamble
Prerna Kamble - 06.04.2022 20:25

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

Ответить
Janina Almog
Janina Almog - 01.04.2022 06:42

Thanks Alex, your videos really make sense to me👌

Ответить
bbc guy
bbc guy - 26.03.2022 16:22

Just do -32 and cast to char

Ответить
Irshad Telsang Official
Irshad Telsang Official - 31.01.2022 10:12

Input- "why should i join in cognizant"
output: "why should i JoIn ni CoGnizanT"

how to capitalize multiple characters in string?

Ответить
manikandan
manikandan - 19.12.2021 10:46

Type Sout.. And Press tab button... system.out.println();... 😅☕☕

Ответить
Phomolo Manuel
Phomolo Manuel - 05.11.2021 15:56

you are the best God bless you😁😇

Ответить
Dory
Dory - 07.10.2021 22:30

Thank you so much!!!!!!!!!!

Ответить
Professor Aman
Professor Aman - 20.06.2021 19:56

I need your email address or watsApp to communicate... I like your Tutos...

Ответить
Mr. Sakowicz
Mr. Sakowicz - 09.04.2021 04:24

this is great- however now wondering how we could do this with user input- that would be an un-pre-defined string length- so I wonder if we could get the length and use that to run this string method? yikes my head hurts- help? ;)

Ответить
Mr. Sakowicz
Mr. Sakowicz - 02.04.2021 22:28

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! :)

Ответить
Abdul Brown
Abdul Brown - 12.03.2021 04:17

Unfortunately I can’t use substrings for my itec class

Ответить
Brett Bourne
Brett Bourne - 11.03.2021 00:28

I need grab the last three characters and put them to lowercase and I do not know what I should be doing here. How would I go about using the substrings or code to make the last three characters of whatever my user inputs for a string, lowercase?

Ответить
The Didi and Fufu Show
The Didi and Fufu Show - 14.02.2021 22:36

i love you

Ответить
WHITE DEVIL OFFICIAL GAMING
WHITE DEVIL OFFICIAL GAMING - 13.02.2021 19:34

Thank you Sir

Ответить
NightShocker03
NightShocker03 - 21.12.2020 08:30

geez.. imagine doing more work just to add a capital letter

Ответить
Дмитрий Аницой
Дмитрий Аницой - 16.12.2020 02:16

How do you know it's my birthday today?
Thx!

Ответить
Zarl Lastimada Razon
Zarl Lastimada Razon - 13.12.2020 16:27

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

Ответить
Introvert Guy
Introvert Guy - 01.12.2020 15:19

I want the first letter of the second word capitalize .. how to do it?

Ответить
Introvert Guy
Introvert Guy - 01.12.2020 15:08

I love you

Ответить
Danger GRANGER
Danger GRANGER - 01.12.2020 07:03

Bro you look so done with life in this vid lol

Ответить
TaKookieChimchim
TaKookieChimchim - 17.10.2020 14:45

how do i make the whole string into capital letters

Ответить
Mobythicc
Mobythicc - 10.10.2020 02:44

but how do you capitalize both words???? I'm lost in trying to figure this out!

Ответить
Jacob Yealy
Jacob Yealy - 13.09.2020 21:02

What are the chances im just now seeing this but it was posted on my birthday!

Ответить
Jeyhun Aliyev
Jeyhun Aliyev - 27.06.2020 21:25

👍

Ответить
Jan Aldrin Manahan
Jan Aldrin Manahan - 13.05.2020 18:02

I am confused about the s.substring(0,1) and s.substring(1)

Ответить
Liam Brain
Liam Brain - 07.05.2020 20:32

Please do a StdDraw tutorial

Ответить
Vinukumar Vinu
Vinukumar Vinu - 06.05.2020 18:48

Good vedio and it very and very helpful

Ответить
Joe Thompson
Joe Thompson - 06.05.2020 16:22

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!

Ответить
eien
eien - 06.05.2020 09:22

why many people hate java?

Ответить
Cesar Raynor
Cesar Raynor - 06.05.2020 01:54

Using scanner. I am moving the first word of a string to the end and the second word in the string is now the new first word. I completed the program BUT! I do not know how to only capitalize the first letter of the new word. Please help!

Ответить
boki ca
boki ca - 02.05.2020 16:07

Alex please make a video about serialization and deserialization

Ответить
Vinicius Araújo
Vinicius Araújo - 02.05.2020 02:55

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!

Ответить
Hussam Adil
Hussam Adil - 01.05.2020 23:59

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();

System.out.println(firstLetter);

name.deleteCharAt(0);

name.insert(0,firstLetter);

System.out.println(name);
}

Ответить
Ideology
Ideology - 01.05.2020 22:30

perfect timing! 👌

Ответить
Vivek Anand
Vivek Anand - 01.05.2020 19:42

Great explanation 😇😇

Ответить
Nathanael Ahiagbedey
Nathanael Ahiagbedey - 01.05.2020 18:57

is the audible link working for anyone?

Ответить
Chaz K. Official
Chaz K. Official - 01.05.2020 17:53

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

Ответить