Question: Help with Java! Reading a program Read both classes below (PuzzlePage and WordScramble). Be the computer and trace which line of code is executing in
Help with Java!
Reading a program
Read both classes below (PuzzlePage and WordScramble). Be the computer and trace which line of code is executing in order. Keep track of what the current state of each variable is.
import java.util.Scanner;
/**********************************
* PuzzlePage.java
* Creates word puzzles for the Triangle
* @author Tammy Pirmann
* @version 20210407
*********************************/
public class PuzzlePage {
public static void main(String args[]){
Scanner keyboard = new Scanner(System.in);
WordScramble puzzle = new WordScramble();
System.out.print("Enter the solution word: ");
String solution = keyboard.nextLine();
System.out.printf("Your puzzle is: %s", puzzle.scramble(solution));
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
