String Builder | Java Placement Course Lecture 13

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

Notes of this Lecture:
Рекомендации по теме
Комментарии
Автор

finally I'm completed my core java, lots of respect/appreciation to you shraddha mam & your team 👍

ansariafsar
Автор

if we have to do the reverse process without using function then we can do it more easily with am empty string and for loop.
String s="Saikat";
String rev="";
for(int i=s.length()-1;i>=0;i--){
rev += s.charAt(i);
}

saikatghosh
Автор

For reversing a string simplest way will be:
StringBuilder sb = new StringBuilder("Tony");
StringBuilder sb1 = new StringBuilder("");
for(int i = sb.length()-1; i>=0; i--){
sb1.append(sb.charAt(i));
}
System.out.println(sb1);

harshcarpenter
Автор

Whatever i will write for Shraddha is always a less. All i can say really appreciate for your effort to put across tough things in simpler way. And explanation in Hindi can be so good that i never thought off. Thanks to everyone who put there effort right from concept wise, edit wise, teaching wise . You will definitely savior for many of us in terms of basic concepts clearing. kudos to entire team once again.

sumitchoudhary
Автор

finally i had completed till now..
thanks too you maam and sir ❤

deepakrawat
Автор

Easy Cheezzzyyyy 😊
StringBuilder rev = new StringBuilder("Hello");
int i=0; int j=rev.length()-1;
while(i<j){
char temp = rev.charAt(i);
rev.setCharAt(i, rev.charAt(j)); // Set char at i
rev.setCharAt(j, temp);
i++;
j--;
}

Arshad_mirza
Автор

19:48 Didi, we can also reverse a string by -
public class sbTest{
public static void main(String[] args) {
StringBuilder sb = new StringBuilder("hello");
StringBuilder newSb = new StringBuilder(" ");
int j = 0;
for(int i = sb.length()-1;i>=0;i--){
newSb.insert(j, sb.charAt(i));
j++;
}
System.out.print(newSb);
}

Gamer_
Автор

Please upload all the lecture ASAP . Waiting for Data Structure and Algorithm part..

siddharthsharma
Автор

Thank you very much 💐❤️ for providing such valuable information . Finally I'm able to learn coding 😀

_adityaraghuvanshi
Автор

1) Reverse String using string builder using inbuilt function.
String s2=
System.out.println(s2);

siddheshsakpal
Автор

After watching multiple videos, I finally understood to reverse a string through your video

harshsahu
Автор

Ye aisa channel hai jise dekhker mujhe utni hi kushi hoti hai jaise kisi chote bacche ko Doraemon dekhker...🎉🎉😀😀

chandankumarnandan
Автор

Hates off to @Apna_college . Really need this kind of contant . Thanks a lot.

anuragsanadhya
Автор

14:38 Reverse a String : StringBuilder str = new StringBuilder("APNA COLLEGE");
str.reverse();
System.out.println(str);

OUTPUT: EGELLOC ANPA

AIYouTubeTricks
Автор

For Reverse the String Easy Way
String name = "Tony";
for(int i = name.length() - 1 ; i > = 0 ; i - - ) {

}

JAY_VEGAD
Автор

We can also use reverse() method in StringBuilder to reverse a string😁

naag
Автор

At 17:00 we can also do by using for loop is just reverse direction like initialising by { name.lengthI()-1 to 0 } considering name as out String and just print 🙃🙃🙃🙃

yujityadav
Автор

Aapse to koi begginner wala insaaan kbhi seekh hi nhi skta kuch.

beingaliveshow
Автор

public class Strings{
public static void main(String[]args){
String builder r =new StringBuilder("Apana College");

}
}




egelloC anpA

mohammadajazvlogs
Автор

Didi please upload all the lectures as fast as you can.
Thank you!!!

naheedaparveen