logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    kevinzhao183
    Nov 15, 2020

    Intro to Java 11/14 Homework

    in Java Question Bank

    Given the following piece of code, what will be the output?


    String str = "pizza and sandwich";

    char c = str.charAt(8);

    int n = str.length();

    String otherstr = str.substring(0, 5);

    System.out.println(c);

    System.out.println(n);

    System.out.println(otherstr);

    4 comments
    0
    ElijahG
    Nov 15, 2020

    d 18 pizza

    0
    lshirleys2008
    Nov 16, 2020

    d

    18

    pizza

    0
    lshirleys2008
    Nov 16, 2020

    d

    18

    pizza

    brendan.yen
    Nov 21, 2020

    n 18 pizza

    0
    4 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners