Strings in One Shot | Java Lecture 49 | java srings | strings | stringbuilder |

preview_player
Показать описание
Strings in One Shot | Java Lecture 49 | java srings | strings | stringbuilder |

00:00 Introduction
01:04 Declaration, Output and Input
09:04 charAt() & length()
14:15 Builtin String functions
32:25 String + int / char / String
40:28 substring(i,j) & substring(i)
47:46 Ques 1 : MCQ
49:43 Ques 2 : Print all substrings
56:56 Interning in Strings
1:00:08 int[ ] brr = arr
1:02:10 “new” keyword
1:07:37 Immutability of Strings
1:16:24 Performance of Strings
1:29:16 StringBuilder
1:34:10 Builtin StringBuilder functions
1:49:04 Ques 3 : Toggle the characters of a given string
2:08:06 Ques 4 : Count the number of palindromic substrings
2:23:56 Ques 5 : Reverse each word in a sentence
2:35:26 Ques 6 : Compress the given String (LeetCode Medium)
2:50:59 Summary
2:53:35 Maza aa gaya?

📌 𝐏𝐇𝐘𝐒𝐈𝐂𝐒 𝐖𝐀𝐋𝐋𝐀𝐇 𝐎𝐓𝐇𝐄𝐑 𝐘𝐎𝐔𝐓𝐔𝐁𝐄 𝐂𝐇𝐀𝐍𝐍𝐄𝐋𝐒 :

📌 𝐏𝐇𝐘𝐒𝐈𝐂𝐒 𝐖𝐀𝐋𝐋𝐀𝐇 𝐒𝐎𝐂𝐈𝐀𝐋 𝐌𝐄𝐃𝐈𝐀 𝐏𝐑𝐎𝐅𝐈𝐋𝐄𝐒 :

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

Decode Batch:- DSA with C++

Binary Batch:- Java-with-DSA-&-System-Design (Java with DSA & System Design)

Sigma Batch:- Full-Stack-Web-Development (MERN Stack)

Impact Batch:- Data-Science-Masters (Full Stack Data Science)

CollegeWallahbyPW
Автор

00:00 Introduction
01:04 Declaration, Output and Input
09:04 charAt() & length()
14:15 Builtin String functions
32:25 String + int / char / String
40:28 substring(i, j) & substring(i)
47:46 Ques 1 : MCQ
49:43 Ques 2 : Print all substrings
56:56 Interning in Strings
1:00:08 int[ ] brr = arr
1:02:10 “new” keyword
1:07:37 Immutability of Strings
1:16:24 Performance of Strings
1:21:08 str.equals() & ==
1:29:16 StringBuilder
1:34:10 Builtin StringBuilder functions
1:49:04 Ques 3 : Toggle the characters of a given string
2:08:06 Ques 4 : Count the number of palindromic substrings
2:23:56 Ques 5 : Reverse each word in a sentence
2:35:26 Ques 6 : Compress the given String (LeetCode Medium)
2:50:59 Summary
2:53:35 Maza aa gaya?

cricketworld-tq
Автор

Raghav garg sir is the best teacher for coding for sure 💯... ❤so much respect from heart sir ..
Your way of teaching is like as alakh sir for physics and chemistry ...
Best teacher 🎉
Guys plz follow his lectures for best knowledge gaining

khyatichahal
Автор

easy solution for ` *1:49:04** Ques 3 : Toggle the characters of a given string* ` problem

// Given a string, the task is to toggle all the characters of the string i.e.
// to convert Uppercase to Lowercase and vice-versa.

public class toggleCharacters {

public static void toggle(StringBuilder str) {
for (int i = 0; i < str.length(); i++) {
char ch = str.charAt(i);
if (Character.isUpperCase(ch)) {
str.setCharAt(i, Character.toLowerCase(ch));
} else if (Character.isLowerCase(ch)) {
str.setCharAt(i, Character.toUpperCase(ch));
}

// Second approach
// int ascii = str.charAt(i);
// if (ascii >= 97 && ascii <= 122) {
// ascii -= 32;
// } else if (ascii >= 65 && ascii < 97) {
// ascii += 32;
// }
// char ch = (char) ascii;
// str.setCharAt(i, ch);

}
System.out.println("Toggled String: " + str);
}

public static void main(String[] args) {
StringBuilder str = new StringBuilder("mAniSH BhusaL");
System.out.println("Original String: " + str);
toggle(str);
}
}

ManishBhusal
Автор

sir ..i m huge fan of yours...aapki video dekh ke hi mujhe java me intrest devolp hui..Thank you sir, God bless you

AmitKumaramitlpu
Автор

Sir your communication skills are so good and teaching skills

ankitakumari
Автор

Thank You Sir You Are My Best Teacher No Body Teach Like You

pushpaKumari-jobm
Автор

Manvi maam i addicted to ur lecture plz return back maam. This is humble request maam don't leave ur students in the middle.

johnsonsvaselly
Автор

sir kasam se mazaa a gaya aapke dedication ko salaam hai mera thakyou so much sir

AshutoshKumar-kbjx
Автор

Raghav sir is the best teacher. Please sir upload full Java course in your own way.

aamishcr
Автор

Important points:
29:30 - String concat and string '+' function
1:02:13 and 1:16:30- Memory allocation in heap

shhivanshh
Автор

great content. covered all the important topics and the questions was like cherry on top.

krishpatel_
Автор

Maza aa gaya. Thanku for the amazing lecture

ramitroshan
Автор

@1:00:08 this is wrong. It works only if we do,
int[ ] arr={1, 2, 3};
int[ ] brr=arr;
now if I change arr[0], brr[0] also changes.

KartikBH-ldkp
Автор

You are the best teacher in the world 😊

anshupriya
Автор

one of the best lecture on string, thnk u sir

gourabrajak
Автор

String str = "AYAAZAM";
Stringbuilder sb= new Stringbuilder(str);
sb.reverse();
Sout(sb);

Thank you Raghav Sir❤

prashantkohli
Автор

God level explanation raghav bhaiya...aapka explain krne ka tarika bahut hi aacha h...thanku so much bhaiya jee❤

ShubhamSingh-xpvr
Автор

maza aa gaya. Thank you sir for this meticulus lecture

ChinmoySarma-qpgc
Автор

At- 2:01:58 Home Work Answer at my pace.
after line 16, you add this code.

if (asci>=48 && asci<=57){
continue;
}

ghulamjunudchishti