Given the following main method, replace the item with code that reads two words and checks for

Question:

  1. Given the following main method, replace the item with code that reads two words and checks for the first one having 5 characters and the second one starting with z. You must use method-call chaining.

public static void main(String [] args) { Scanner stdIn = new Scanner(System.in); System.out.println(

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: