String Method Java Tutorial #29

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

In this String method Java tutorial, I show you that whenever you type the name of your String and then a period, there is a list of string methods you can use! These string methods can help you do certain things like capitalize, lowercase, get characters, etc!

Strings in java are just characters grouped together than you can use for printing, storing and manipulating. You can convert them to uppercase, lowercase or even get just a piece of the string by using these built in methods. I teach you how to lowercase in java and how to uppercase in java amongst a few other useful string methods.

The name "string method" can be a little tricky to get used to, but don't worry too much about it right now! They aren't too bad :) If you followed along, congrats! You learned-by-doing!

I hope you enjoyed this string method java tutorial! I like to have a nice mix of tutorials and actual projects for you all :)

Which string methods are you using in your java program? -

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

~

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

I have been struggling with Java but you make it so much more easy to understand. Thank you!

liefesutliffmusic
Автор

I'm a software engineering student and literally feel so lost in most classes but I always come to this channel and feel more hopeful. Thank you for making these video's!!!

WaffleMadNeSsz
Автор

I was experimenting thanks to how clear you made it,
For Line 13, "Last Char:", I was wondering, "What if I don't want to count how many characters there are, and instead of just typing the '12' like in your video, what if I used the name.length to find the length, and then subtract 1 to give me the number rather than me having to input it. So I used the name.length inside the name.charAt:
System.out.println("Last character: " + name.charAt(name.length() -1 ));

For me it worked after fixing some weird Eclipse errors and I felt so proud for being able to do the same thing through different methods. I wouldn't have been able to figure it out for myself if you didn't give great examples as graspable building blocks.

Thank you so much. As far as my learning abilities go, you're the best.

Accel_Lex
Автор

I'm 50 and very new to computer work but still wanna learn how you young people do your fast move. This video adds so much understanding to my research. a big thanks from the bottom of my heart.

adelaidanotarteramos
Автор

This video along with your for loops (especially the nested for loops) video helps alot. For this code i modified it. I put the "charAt" into a for loop and had it print out every char at i, while also counting i. So "Char at index" + i + " is " + name.charAt(i)

gabbysmith
Автор

I find these video so much easier to understand and even recommended to my friends. Thank you so much for these video, I wouldnt have been able to understand whats going on in my class without your videos :)

tasneemabdkhair
Автор

bro your the best at explaing these concepts, way better than how my professor explained string methods

svaldes
Автор

no one of the methods during this time :)

that's why i saw this video, i had a pit problem with using kind of them, like: (length, charAt, etc.)

but after watching this video, i understand better, so thanks!

Abdulrahman-hbfy
Автор

the thing I love most about watching such videos is that my brain instantly applies everything to what I already know.
with name.length I could use a loop to traverse the string and do Stuff with it, like if(name.substring(i), equals(" ")) delete it. and thus get rid of all space characters.
I am still unsure why I would do this, but there will come the time!!!

GalliadII
Автор

No dislikes is awesome. Great job Alex.

jimmckay
Автор

You're a god! Guys, turn off your adblockers for this guy! :D

ae
Автор

I am a computer science undergrad, and your videos are super helpful!

zrpalette
Автор

Your channel is a great resource for me. I will definitely be investing in your course, soon.

allsmiles
Автор

Thanks Alex this is very helpful! I am learning Java currently and I use your videos a lot to supplement my classes.

davidward
Автор

You are making Java so much easy for me to understand.
Thank you!!!

stanleyonwuchekwa
Автор

.trim, .concat, .toUpperCase, .LowerCase etc, these are the string methods I use in my Programs :-)

himnishdhiman
Автор

thanks man, you are a good instructor, I'm learning with you I wanna be a software engineer. let's see how it goes

danielveron
Автор

Greetings
I really like the way you explain everything that's related to Java
Am sure you're not only helping me, thank you so much for your clarification.

mohammedmohammedalrubaiaan
Автор

You're the reason I pass IT programming man!!

graykekana
Автор

Thank you for these concise tutorials.

DaComAK