IS5103 Lesson 4 quiz
1. What is the output of the following code? public class Fish { The code does not compile. 2. What is the output of the following code?var numbers = “012345678”.indent(1);numbers = numbers.stripLeading();System.out.println(numbers.substring(1, 3));System.out.println(numbers.substring(7, 7));System.out.print(numbers.substring(7));Each correct answer represents a part of…
