Java Tutorial: String Methods in Java
Вставка
- Опубліковано 12 вер 2020
- Java String Methods with Examples: This Java Tutorial video explains different Java String methods associated with the Java String class. Each method is Explained with a brief Description, Syntax and an Example
►This playlist is a part of my Complete Java Course playlist: • Java Tutorials For Beg...
►Source Code + Notes - codewithharry.com/videos/java...
►Ultimate Java CheatSheet: codewithharry.com/videos/java...
►Checkout my English channel here: / programmingwithharry
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
Students who watch this video , after 3 years . give attendence here....😅
Me watching now
Lol only 2 😮💨💀💀
ME FR
✋️
Yes. I am also watching.
Notes ka link description me daal diya hai. If you think this course is useful, do share it with your friends!
Sir, please make touriotal for qbasic.
I have learn my things from you. You are very dedicated. Thank You Sir
Full course of c#
If possible pleeease...
Harry bhaiya, ch_2 ka pdf link dijiya na.. Mya printout karna chahatihu but part by part aap link nahi diya.. Or oprater ki jo video tha uchki link jarur dijiga mara bohot help hoge
@@alamgirsardar6627 harry bhai neh chapter 2 ka notes diya hai
Ek bar chapter 2 ka sareh videos ka description dekh loh mil jayega
Harry bahi u should make a playlist for our teachers to learn teaching
🤣🤣🤣op
🤣🤣😂😂😂😂Sahi Bole Tum Banana Chahiye 😂🤣
Exactly 😂
😂
to tum sab yeha nahi aaoge😂😂😂
Agar ye course paise de kar karu fir bhi itna sab kuch koi nahi sikhata hai. great sir👏👏👏
4:17 i heard new version of "ek do teen"song.
love from gujarat..🌹🌹🌹🌹❤✔✔✔
😁
Caution⚠️ : The content of this channel is highly addictive may lead u to become a good programmer in future 😌💕🔥🔥🔥🔥
OK
lol😂😂😂
wtf caution lmao
Ok
oh she is sarcastic
This channel should be best channel for the students of this generation , Harry bhai hats off to you for your efforts ❤️
Bhai thanks for raising my interest I haver been trying to learn coding for 4 years I'm 32 and trying to switch my careers yoh are the one who is consistent and good at teaching God bless you
Best Video , Harry Sir ! You are life changer for many of NON - IITan Student like us :)
Ek Questions hai agar ap koi company me job krte ho wo apko java program mai kaise kam krna bolage (mean's) kon se type ka project bana bolage ek video chahiya
And c++ , python , php , yeh sub pe job me kon kon se problem pe kam krna ka liye bolajayaga video please
If this line comes when you write tlc or ulc then don't worry, it is the same just in a new version of jdk(I was using jdk 17)
String lstring = name.toLowerCase(Locale.ROOT); and String ustring = name.toUpperCase(Locale.ROOT);
Thanks Harry Bhai
generally do not prefer to watch videos(educational) more than 20 mins, but your knowledge and narration makes it easy to sit
Man ! You got some serious skills in teaching and full of knowledge. Thanks alot for such a awesome content
to be honest, this is the best explanation video of coading that I've ever watched ❤🔥
Harry Bhai explains very slowly and calmly, trust me write down whatever he says. Make you own notes and refer to his in the end for anything extra. Worked for me. Thanks Harry bhai you made this clear in my head
Really awesome course ❤️❤️❤️
Keep making such courses for those who can't afford to give fees of courses like this 😘😘😘😘
Im agree with your opinion
many of them can actually afford but they love how harry teaches them so they learn from him...
Research
I conducted a test
I gave java to print to 10000000
I gave python to print to 10000000
Results Are Here:
Java Takes: "28.30" Seconds In 8GB RAM And i3 Processor
Python Takes: "04:25:85" Four Minute 25 Seconds & 85ms In 8GB RAM And i3 Processor
Hense Proved: Java Is Better Than Python In Computation Time
Cool!
28 seconds lol
Only in time computation though!
i think the time that you mentioned is the time that it takes to print these numbers in the command line rather than of computation. in computation they both would be really close.
give same task to C and it will do much faster than any language
Thank you so much Harry sir for your hard work and the gift of your notes
Harry bhai you are the best. You do this much hardwork for teaching us programming language, when we will achiever our goal we will see at you , you the foundation of goal. Thankyou so much!
Thanks for making this videos. You are great. This is the best channel even better than offline tutions.
Really feel grateful that I got your playlist and course. Amazing !!!!!😇😇😇
Coming here from ur python tutorial, you explained all of these things in that tutorial, now its so much easier to understand things that I previously used to be afraid of... 🙏 Shat Shat Pranam...
Am a fan of your sir, learn so many things from your channel. Lots of respect for you.
It's very hard to help to other but you're doing a well and simple way
Thank you so much bro that course and also for ds and python
I thought it's about to end,
But when (16) number method pops up from nowhere Kasam se bhai dil khush ho gaya.. 😀🔥
Thank you so much Harry bhai, u are such a gem💎. Dil se dua nikal rahi he aapke liye. Bohot taraqqi karo aap. You are helping us so much by ur knowledge and putting so much efforts👏. Thank you so much
Harry bayya this video is very clearly explained without leaving behind any ambiguity.
Thankyou
I'm also a small UA-camr. I know how hard work u r doing sir. And how it feel when u get low views as I also get but thku sir
bhai tu edhar kaha se aagya😂😂
Great. Harry Bhai, you always make a smile on our face everytime. This revolution is going to be legendary.🙇🏻♂️🙇🏻♂️
bro.. bohot mehnat krta h ye bnda... no one even on paid courses does so much as it's all about selling the course. thank you so much
Sir ,I am learning under your guidance,i am following whatever you are saying , thanks sir
Sir no need to say thank you for watching this video. Thank you for making it . Best Sir ❤️
Thank you for making this video. It helps me a lot. Please carry on.
public class main {
public static void main ( String [] args) {
String name = "Harry";
System.out.print(name + " Your teaching Skill is very awesome ");
}
}
Hatsoff to your knowledge,teaching skills, your hardwork truly an inspiration brother 🙌 🙌
Notes ka link nahi khul raha hai
Great video with proper conceptual things on strings.
A note on the replace method - You can replace both - characters and strings. Use single quotes (' ') for characters and double quotes for string. Replace a character with a string and vice versa is not allowed. Like str.replace('c', "cc") is invalid.
Thank you so much sir this video is very very useful rather than previous video literally this video clear all doubt about the strings
Previous video is also good i want to say thank you so much😇🙏
Harry bhai, First of All Thank you for this wornderfull ans Amazing Lectures. Tell me one thing na, I just participated in an online coding platform and it allows me to code in java, But what problem I face that there are various versions of java like java 8, java 15, etc. So What to choose to form them and what version we are working on your lectures.
thank you 🤩
I am mechanical student and I have learnt C and and OOPs in python from Harry sir., cheers
me too bro
thanks a lot to u , because i was so confuse regarding all these but your this video has cleared all my doubts . Actually u r doing a great job. thanks for helping a lot of students in their path of learning java.
Thank u harry bhaiya for this lovely explanation, i love revising java w u im planning to start dsa after completing my revision 😁✨
Kitne khusnasib honge wo log jin logo ne python ke vedios me sir se homework check kraya ho
Very nice explanation sir. Keep it up!
So nicely explained every topic in detail and notes are perfect to the point,well managed. Very helpful ❤
Lots of Success and Good Health to You Harry Sir. Aap aaj ke Zamane ke Guru Dronacharya hain. Shat Shat Naman Aapko.
System.out.println(" Thank u so much Harry bhai")
error dega last me semicolon
Ye chapter padhne sabse jyada maja aya 😍 mko lga string is difficult to understand.. Bt abhi to ek ek point dimag mein baith gya hai
Thank you sir
Mujhe bhot boring lag Raha hain ye chapter... Skip karne ki socha 4 baar lekin sala important hain skip bhi nii kar sakta
@@badguysky6311 🙂 as u wish ... Bt meine ye chapter game ki tarah samjh k padh liya.. To achese yaad hua😂
@@manalikoli7652 kitna time laga pura java khatam hone me??
sir i am watching your video 2 years latter, still your video is the bast ,
love from odisha ..
Sir ji , aap ka teaching concept bohot sahi hai since im from non technical background and i need this kind of teaching so that i can get things easily. Keep it sir ji
after watching replaced harry,s name with happy I was truly happy
This Java course is very good. :)
The best programming video ever seen huge fan of yours thankyou
Harry Sir you are great. Mere collage me Java start ki par kuch samajh ni aa raha tha fir aapki playlist mili ab me sab samajh paa raha hu.
Thank you sir i have completed your python playlist
His Mind blowing Playlist is Python Playlist
Yes
You will be able to complete 🙂🙂🙂👍👍all the best to you
Yes i will and thanks for subscribing my channel
// Thank me later.
All String Methods
The String class has a set of built-in methods that you can use on strings.
Method Description Return Type
charAt() Returns the character at the specified index (position) char
codePointAt() Returns the Unicode of the character at the specified index int
codePointBefore() Returns the Unicode of the character before the specified index int
codePointCount() Returns the Unicode in the specified text range of this String int
compareTo() Compares two strings lexicographically int
compareToIgnoreCase() Compares two strings lexicographically, ignoring case differences int
concat() Appends a string to the end of another string String
contains() Checks whether a string contains a sequence of characters boolean
contentEquals() Checks whether a string contains the exact same sequence of characters of the specified CharSequence or StringBuffer boolean
copyValueOf() Returns a String that represents the characters of the character array String
endsWith() Checks whether a string ends with the specified character(s) boolean
equals() Compares two strings. Returns true if the strings are equal, and false if not boolean
equalsIgnoreCase() Compares two strings, ignoring case considerations boolean
format() Returns a formatted string using the specified locale, format string, and arguments String
getBytes() Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array byte[]
getChars() Copies characters from a string to an array of chars void
hashCode() Returns the hash code of a string int
indexOf() Returns the position of the first found occurrence of specified characters in a string int
intern() Returns the canonical representation for the string object String
isEmpty() Checks whether a string is empty or not boolean
lastIndexOf() Returns the position of the last found occurrence of specified characters in a string int
length() Returns the length of a specified string int
matches() Searches a string for a match against a regular expression, and returns the matches boolean
offsetByCodePoints() Returns the index within this String that is offset from the given index by codePointOffset code points int
regionMatches() Tests if two string regions are equal boolean
replace() Searches a string for a specified value, and returns a new string where the specified values are replaced String
replaceFirst() Replaces the first occurrence of a substring that matches the given regular expression with the given replacement String
replaceAll() Replaces each substring of this string that matches the given regular expression with the given replacement String
split() Splits a string into an array of substrings String[]
startsWith() Checks whether a string starts with specified characters boolean
subSequence() Returns a new character sequence that is a subsequence of this sequence CharSequence
substring() Extracts the characters from a string, beginning at a specified start position, and through the specified number of character String
toCharArray() Converts this string to a new character array char[]
toLowerCase() Converts a string to lower case letters String
toString() Returns the value of a String object String
toUpperCase() Converts a string to upper case letters String
trim() Removes whitespace from both ends of a string String
valueOf() Returns the string representation of the specified value String
Bhai kaha se copy kiya🤥😂
@@aniketpotbhare389 bhai jaha se bhi copy kiya apko agr help kr rha ha to be grateful
thanks brother
Thnks bro😍🥺
Literally you’re amazing no one can teach each and everything in such a detailed manner ❤
this whole playlist is excellent
this playlist cover whole 80% of java in 20% of time
String name = "Abhishek";
System.out.println(name);
// first 1 st
System.out.println(name.length());
// second
System.out.println(name.toLowerCase());
// third
System.out.println(name.toUpperCase());
// fourth
String c = " abhishek";
System.out.println(c.trim());
// fifth
System.out.println(name.substring(2));
// sixth
System.out.println(name.substring(1,3));
// seventh
System.out.println(name.replace('A','b'));
System.out.println(name.replace("Abhi","king"));
// eighth
System.out.println(name.startsWith("Abhi"));
// ninth
System.out.println(name.endsWith("eK"));
// tenth
System.out.println(name.charAt(1));
// eleventh
String name2 ="happyppy";
System.out.println(name2.indexOf("p"));
// twelve
System.out.println(name2.indexOf( "ppy",3 ));
System.out.println("I am abhishek \" abhishek");
Gajab Bhai! Salute itna mehnat karne ke liye.
1 minute me revision kara diya tumne 🙏🏼❤️
Good bruh
Hey I'm living in 26 June 2024 ❤ give a heart ❤
Thank you for providing best tutorial for java ... Your teaching skills are amazing...
koi itna basic kese sikha sakta he bhai... Hats off to you Harry bhai🙏❤
System. out. print ("Thanks sir for your java playlist you are awesome");
respect++;
No
He deserves
++respect;
Bhai java ke notes Apke Pas ho to share kr skte ho kya plzz muje jarurt hai
Wp -6263713978
Share krdo Bhai plzz
@@GYANmandu yea ++infinityrespect to Harry bhaiya!!
mst he java
God bless you,
Keep doing such great work
Harry Bhai, I'm very grateful. Anyone can become a professional thanks to your tutorials and your clear explanations. I acknowledge it very much!
Sir I have -
Downloaded notes
⏬
Printed the notes
⏬
After Binding
⏬
Framed the notes🙇
Question : Have I done everything in the right way
16:13 if u want to replace the character with the blank then the following command to entre
"System.out.println(name.replace ('any character' , ' ');
mind that there should be space between apostrophe or else it will show error
package stringClass_Methods;
public class Method9
{
public static void main(String[] args)
{
String str = "ABCD";
for(int i=0; i
Awesome video👌👌.. all my doubts are cleared.. thanks sir.
Easy to understand....nicely explaination
Thank you sir❤️🙏
thanks for making such a beautiful playlist ❤
Harry sir your teaching is Mind Blowing
THANK YOU SIR, NO DOUBT YOU ARE BEST SIR. YOU ARE PRIDE OF INDIA.❤❤❤♥♥
Thank you so much sir for this awesome playlist
Harry bhai you are doing amazing job, it's helps me alot,so thank you,keep teaching us like this 😀👍👍👍👍
THE EFFORT HARRY BHAI MAKES TO PREPARE HIS VIDEOS ARE BRILLIANT
bhai ne jindgi me in chizo ko sikhne ke liye bahut struggle ki hai is liye bhai bhot shiddat se yaha hame videos de rhe h
Harry bhai before watching this video I was having a lot of doubt after watching this video all my doubts are solved thank you.
Ap ka notes bohut helpful hai bhaiyaa😊😊
Thanks a lot ❤❤
00:04 String methods in Java allow you to manipulate strings and perform operations on them.
02:26 The main point is to explain the usage of String methods in Java.
07:15 Understanding the meaning of uppercase and cleaning characters in a string
09:38 The trim() method removes whitespace before and after a string
14:10 String methods in Java: Using substring and replace
16:18 IntelliJ IDEA helps in replacing characters in a program.
20:37 String methods in Java
22:45 The index of a specified substring can be found using the indexOf() method in Java
27:31 String methods in Java - search and last index
29:28 The video explains about string methods in Java.
33:44 String methods and escape sequences in Java
35:48 Escape sequence characters are used to skip certain characters in Java.
Bohot hi badiya tha video aapka
jooo strings methods bataye oooh ekdam bhari the muze pahlese yaad nahi hote the par aab ekdam dimag main feet hooo gai jo prcatical aapke sath kiye tooo
Karliya ye wala video bhi
Ab pehle ye sab kuch ek baar revise krna hoga, kaafi sare methods hain strings ke
Uske baad jaunga practice set pe...
thanks harry bhai
best teacher
SIR AAP KA WORK BHUT HI ACHAA HAI 😊
ABHI MAI C COMPLETE KARNE WALA HU ..OR ONLY APKI WAJAH SE YE POSSIBLE HUA HAI 🥰🥰
Please continue this playlist
Dont look at the views that are decreasing videos by videos
Please continue this for serious guys who wants to really learn from you.
The viewrs in your last videos of playlist are your true fans
Prabhu aapke charan kha hai really sir you are explaining each and everything with transparency and i am really liking your tutorials alot and thanks for explaining each and everything and i am your fan sir.
Thankyou Harry bhai ❤️ for this java course....
harry bro .. really liked your every video .. so much love and support to you
apka bahut bahut dhanyawaad harry sir ..for such a content
Love Harry bhai for notes.Amazingly written!
Really good initiative and the lectures are awesome...
Worth sharing! Thanks a ton Harry.
Just love this course Harry bhai
sir really really and too much thankyou for making these videos and notes for us.
sir you teaching us for free and nhi aaj ke time koi free study karvata
This is practical way of teaching.loved it
Harry Bhai at 6:30 I understood your point that no need to rote learn.....but in some coding interviews they literally ask the syntax so no choice but to memorize.
comment after one year of video best tutorials ever with amazing notes.
Very informative video. Thank you sir ❤️
Bestest teacher ever n yet the coolest ❤️