Java Tutorial 11 – Comparing Two Strings

///Java Tutorial 11 – Comparing Two Strings

Java Tutorial 11 – Comparing Two Strings

FavoriteLoadingAdd to favorites

Get more lessons like this at

Java468x60

Learn how to program in java with our online tutorial. We will cover variables, loops, if else branching, arrays, strings, objects, classes, object oriented programming, conditional statements, and more.

Here we learn how to compare two strings in java.

source

By |2020-09-22T09:33:40+00:00September 22nd, 2020|Java Video Tutorials|4 Comments

4 Comments

  1. Richard Li September 22, 2020 at 9:33 am - Reply

    wdym "comes after/before"

  2. tram September 22, 2020 at 9:33 am - Reply

    Thank you for this video! I have question, how can I compare 2 string arrays? For example:

    String a[] = {“animal”, “food” , “place”};
    String b[] = {“dog”, “cake” ,”japan”};

    If (a[0].equals(b[0])){
    //print Animal }

    I know that .equals() won’t work for String arrays. I hope you help me with this!! Thank you

  3. Laura Bartel September 22, 2020 at 9:33 am - Reply

    Seriously the best java tutorials ever,

  4. Carlos Aponte September 22, 2020 at 9:33 am - Reply

    i love this videos they are very useful please continue on making more like this 🙂

Leave A Comment

*