Java String methods 💬

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 125

  • @BroCodez
    @BroCodez  4 ปีที่แล้ว +96

    public class Main {
    public static void main(String[] args) {

    // String = a reference data type that can store one or more characters
    // reference data types have access to useful methods

    String name = "Bro";

    //boolean result = name.equalsIgnoreCase("bro");
    //int result = name.length();
    //char result = name.charAt(0);
    //int result = name.indexOf("o");
    //boolean result = name.isEmpty();
    //String result = name.toUpperCase();
    //String result = name.toLowerCase();
    //String result = name.trim();
    //String result = name.replace('o', 'a');

    //System.out.println(result);
    }

    }

    • @livano0166
      @livano0166 2 ปีที่แล้ว +5

      thanks man you are better than my teacher

  • @JuliHoffman
    @JuliHoffman 2 ปีที่แล้ว +46

    As usual, you teach more in a 6-minute video than an hour of class time. Thank you!

  • @Diamond_Hanz
    @Diamond_Hanz 3 ปีที่แล้ว +141

    Thanks , Bra!!!

    • @heat3579
      @heat3579 2 ปีที่แล้ว

      😁

    • @nathanlutz4144
      @nathanlutz4144 6 หลายเดือนก่อน +1

      Victoria secret😂

  • @gjbjagadish_185
    @gjbjagadish_185 2 ปีที่แล้ว +7

    your teaching is very different that's why we love it

  • @pavelkvasnicka6856
    @pavelkvasnicka6856 ปีที่แล้ว +3

    This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro

  • @arkamukhopadhyay2177
    @arkamukhopadhyay2177 4 ปีที่แล้ว +15

    Sir, it would be very nice of you if you make a video on regular expressions and bitwise operators.
    Thank You!

  • @A0afro
    @A0afro ปีที่แล้ว +7

    Thank you very much.
    Also I think it's worth mentioning that if idexOf() does not return an element it will return -1

    • @I_am_FRANCO
      @I_am_FRANCO 11 หลายเดือนก่อน +1

      What if it has many indexes

    • @cripton2267
      @cripton2267 11 หลายเดือนก่อน +3

      @@I_am_FRANCO it returns the index of the first element found

  • @mahdisarvarzade9988
    @mahdisarvarzade9988 2 ปีที่แล้ว +5

    Best Java tutorial. I love it

  • @cadestocker2423
    @cadestocker2423 ปีที่แล้ว

    Best teacher I have encountered online. Thanks for all your help!

  • @sunmoller
    @sunmoller วันที่ผ่านมา

    Very useful and made understandable for newbies. :) Thanks!

  • @dianamilenaarchilacordoba4632
    @dianamilenaarchilacordoba4632 หลายเดือนก่อน

    great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much

  • @prathamselopal7197
    @prathamselopal7197 11 หลายเดือนก่อน

    Great stuff , its wonderful how i can learn all sub topics and even units in just 6-10 mins through your videos

  • @mummahadarsal3739
    @mummahadarsal3739 2 ปีที่แล้ว +1

    Bro U are Great ... Very Nice Concepts Given Thanks Sir ... Bro Code always

  • @scripts209
    @scripts209 2 หลายเดือนก่อน +3

    Thanks bra

  • @Muhammadfaisal-kd9kx
    @Muhammadfaisal-kd9kx 11 หลายเดือนก่อน

    great content brother ur way of teaching is good

  • @Felix_1811
    @Felix_1811 5 หลายเดือนก่อน

    I have java exam tomorrow and your helping me so much bro thanks

  • @honoredegg
    @honoredegg 2 ปีที่แล้ว +1

    Understood String methods. 17th. Thank you, ma Bro Sensei!

  • @MATHMAN-qz3de
    @MATHMAN-qz3de 10 หลายเดือนก่อน +3

    Thank you bra

  • @borislove4700
    @borislove4700 3 ปีที่แล้ว +3

    wow bro, nice! learned a new method)

  • @marinayounas6845
    @marinayounas6845 2 ปีที่แล้ว

    Find the first occurrence of the letter "e" in a below string, starting the search at position 8
    "Welcome to Techschool" How to code this?

  • @baubaudinamo
    @baubaudinamo 3 ปีที่แล้ว +5

    Thank you!

  • @izzahzamri2267
    @izzahzamri2267 2 ปีที่แล้ว +1

    The best and always the best mentor!!!!!!! I love you!!!!

  • @JustNeutral14.
    @JustNeutral14. 2 หลายเดือนก่อน +1

    lets go this is another w tutorial

  • @medjl6083
    @medjl6083 3 ปีที่แล้ว +3

    they are principal methods in Java String

  • @paia6447
    @paia6447 2 ปีที่แล้ว +1

    5:41 you're new name is Bra, thank you for your helpful sir

    • @urimsuh
      @urimsuh 2 ปีที่แล้ว

      Mans a genius 😂

  • @anibender4822
    @anibender4822 2 ปีที่แล้ว +3

    What if my assigned name has two letters "e" for example Venera? And when I assign variable "int result = name.indexOf("e")" and run it. The result is shown as 1 (second character in the word "Venera"), but result does not show the position of the second similar character in the word (it has to be 3). Can you tell me please how to get both positions of letter '''e" in the word being shown in the print statement?

    • @codewithron247
      @codewithron247 2 ปีที่แล้ว +1

      maybe using a loop

    • @Criticizeer
      @Criticizeer ปีที่แล้ว +1

      same question bro

    • @Criticizeer
      @Criticizeer ปีที่แล้ว

      @@buckuris1019 thanks bro

  • @themotivated2963
    @themotivated2963 2 ปีที่แล้ว +2

    Not only i learned , i also had a good laugh by myself at the end 😅

    • @karunapanta2645
      @karunapanta2645 2 ปีที่แล้ว +1

      me too lol BRAther!

    • @forstudyonly5232
      @forstudyonly5232 ปีที่แล้ว

      @@karunapanta2645 BROTHERRRRRRRRRRRRRRRRRRRRRR BAHAHAHAHAHAHAHAHAHA

  • @baubaudinamo
    @baubaudinamo 3 ปีที่แล้ว +1

    you are like Miyagi of java

  • @tlou_page
    @tlou_page ปีที่แล้ว

    I was trying so hard to find where was the mistake that I did in my program and finally I found it thank you so much !!!!

  • @bbcguy8327
    @bbcguy8327 2 ปีที่แล้ว +1

    U forgot substring. Very useful

  • @namankapooor
    @namankapooor ปีที่แล้ว

    hello bro, I have a simple question for the name I wrote my name "naman" as an example, I tried out the replace string method....so I replaced "a" with "o" so it changed the output to nomon..... Is there any specific way to only change one syllable at a time?

  • @aiueo8962
    @aiueo8962 ปีที่แล้ว

    mantap bro, dari awal lu gw tontonin terus

  • @thomascooks9197
    @thomascooks9197 3 ปีที่แล้ว +1

    Sadly the TH-cam God did not hear the prayer's. Very good how to Videos bro.

  • @wentaogao2745
    @wentaogao2745 7 หลายเดือนก่อน

    you are effectively my prof bro

  • @thomasfahy1926
    @thomasfahy1926 2 ปีที่แล้ว

    Please help. How do I get it to leave what needs to be in the string? Your says (oldChar, newChar) and when I select which one I want, it just says (0, 0). Please

  • @crlsable
    @crlsable 3 ปีที่แล้ว +6

    Obrigado! 👏

  • @Ragehunter
    @Ragehunter ปีที่แล้ว

    nice ones bro thank you so much!

  • @cesara9747
    @cesara9747 2 ปีที่แล้ว +2

    very useful!

  • @arjundas7078
    @arjundas7078 3 หลายเดือนก่อน

    love it bro!

  • @אליאבגודפרנד
    @אליאבגודפרנד 4 หลายเดือนก่อน

    תוכן מעולה גם בישראל אוהבים אותך

  • @曾毓哲-b1t
    @曾毓哲-b1t ปีที่แล้ว

    Thank you very much!

  • @samiaiqbal1847
    @samiaiqbal1847 ปีที่แล้ว

    Wonderful work 😮

  • @abhiudaitiwari8039
    @abhiudaitiwari8039 2 ปีที่แล้ว

    very nice tutorial, but, I want to ask, what is your real name

  • @CyberEscuela
    @CyberEscuela หลายเดือนก่อน

    Broo you are awesome

  • @rajeevdey_8894
    @rajeevdey_8894 2 ปีที่แล้ว +1

    an another method is .subString(beginIndex, endIndex);

  • @alexeybudkovskiy
    @alexeybudkovskiy ปีที่แล้ว

    Thanks Bro for a great lesson :)

  • @aditipatil3807
    @aditipatil3807 2 ปีที่แล้ว

    Thanks

  • @admoonhermiz1
    @admoonhermiz1 7 หลายเดือนก่อน

    amazing!!!

  • @techballerina
    @techballerina ปีที่แล้ว

    still so useful! Thank you

  • @ardcodelover
    @ardcodelover ปีที่แล้ว

    realy nice

  • @sanaaken9
    @sanaaken9 ปีที่แล้ว

    Good job bro

  • @DestinyRonning
    @DestinyRonning 8 หลายเดือนก่อน

    you da bestttttt!

  • @Horatius_23
    @Horatius_23 2 ปีที่แล้ว

    Thanks, bro!

  • @salahadinshemsu6186
    @salahadinshemsu6186 ปีที่แล้ว

    Thanks bro

  • @percivalgebashe4376
    @percivalgebashe4376 ปีที่แล้ว

    Nice

  • @BarbaraAngelin
    @BarbaraAngelin 6 หลายเดือนก่อน

    thank u bro

  • @huuloc8719
    @huuloc8719 3 ปีที่แล้ว

    Nice.

  • @mindreader860
    @mindreader860 3 ปีที่แล้ว

    Great Bro♥

  • @hunkywarrior3492
    @hunkywarrior3492 3 ปีที่แล้ว

    Thanks, Bro!

  • @ghoggaliabdou4222
    @ghoggaliabdou4222 3 ปีที่แล้ว

    Thank you 💙💙💙💙💙

  • @matinmonshizadeh
    @matinmonshizadeh 3 ปีที่แล้ว

    thanks brooooooooooooooooooooooooooooooooooooooooooooooooooo

  • @pa-305
    @pa-305 3 ปีที่แล้ว

    best bro

  • @danny.3036
    @danny.3036 3 ปีที่แล้ว

    Thanks, Bro! ☕

  • @disbar963
    @disbar963 3 ปีที่แล้ว

    thank's bro =3

  • @Docendo1121discimus
    @Docendo1121discimus 2 ปีที่แล้ว

    Feels like Excel lessons

  • @NebyuDaniel-j6b
    @NebyuDaniel-j6b หลายเดือนก่อน

    King

  • @chsaireddy22
    @chsaireddy22 ปีที่แล้ว

    5:43 🤣 Tq brA

  • @huseinrahiym463
    @huseinrahiym463 4 ปีที่แล้ว +6

    5:43 Dudee i wouldn't call you bra lol

  • @Simis999
    @Simis999 2 ปีที่แล้ว

    So many ladies and gentlemen didn't pray for the algorithm :(

  • @nerrixj.l.6102
    @nerrixj.l.6102 2 ปีที่แล้ว

    😍😍😍

  • @johan-oe9kz
    @johan-oe9kz 2 ปีที่แล้ว

    👍

  • @hemanthsai962
    @hemanthsai962 ปีที่แล้ว

    W

  • @adityaalshi7081
    @adityaalshi7081 2 ปีที่แล้ว

    💕🙌👌

  • @nikitassouvatzis1928
    @nikitassouvatzis1928 2 ปีที่แล้ว

    Ακόμα ένα Video για τη Java από το κανάλι του Bro Code.

  • @dumbcat720
    @dumbcat720 ปีที่แล้ว

    thank you meow

  • @alexyakoveno4682
    @alexyakoveno4682 2 ปีที่แล้ว

  • @irajgharaee7057
    @irajgharaee7057 3 ปีที่แล้ว

    ❤️

  • @GOODBOY-vt1cf
    @GOODBOY-vt1cf 3 ปีที่แล้ว +1

    1:40

  • @simik4830
    @simik4830 28 วันที่ผ่านมา

    comment for algorithmm

  • @ivanalexandrinmatala3362
    @ivanalexandrinmatala3362 28 วันที่ผ่านมา

    Yeh

  • @alialhussain4139
    @alialhussain4139 4 หลายเดือนก่อน

    Thanks, Bro 06/02/2024

  • @kingkock1
    @kingkock1 2 ปีที่แล้ว

    accce

  • @wallstreetbets7741
    @wallstreetbets7741 2 ปีที่แล้ว

    learmnt

  • @siavashdarvishi855
    @siavashdarvishi855 ปีที่แล้ว

    Add a comment....

  • @patrickpasaje4037
    @patrickpasaje4037 3 ปีที่แล้ว

    "Video 17"

  • @fuaidaamreen4693
    @fuaidaamreen4693 3 ปีที่แล้ว

    Hello, bra!

  • @eugenezuev7349
    @eugenezuev7349 6 หลายเดือนก่อน

    I love Bro and bra

  • @karunapanta2645
    @karunapanta2645 2 ปีที่แล้ว

    BRA code!

  • @flake1943
    @flake1943 3 ปีที่แล้ว

    YT Algo

  • @itstueh
    @itstueh ปีที่แล้ว

    comment

  • @relaxjam1952
    @relaxjam1952 5 หลายเดือนก่อน

    now my name is bra

  • @greeneggsandmushrooms9855
    @greeneggsandmushrooms9855 3 ปีที่แล้ว

    shoe strings

  • @quanyufeng579
    @quanyufeng579 3 ปีที่แล้ว

    Cmment

  • @rerein_fmv
    @rerein_fmv 3 ปีที่แล้ว

    Bra chain👇(?)

  • @dalv8749
    @dalv8749 ปีที่แล้ว

    System.out.println("Ty Bro");

  • @lukedecum
    @lukedecum ปีที่แล้ว

    bro

  • @grozageorge2887
    @grozageorge2887 ปีที่แล้ว

    Whith the last replace your name became suited for girls boo...bies 🤭

  • @PoorwayTraning
    @PoorwayTraning ปีที่แล้ว

    thanks

  • @ibrahimylmaz8378
    @ibrahimylmaz8378 2 ปีที่แล้ว

    Thanks bro

  • @engirckt5410
    @engirckt5410 3 ปีที่แล้ว

    Nice