Question: Please help me fix this errorAssign the integer variable numAzaleas with 6 0 . The output is: 6 0 import java.util.Scanner; public class AzaleaInfo {
Please help me fix this errorAssign the integer variable numAzaleas with
The output is:
import java.util.Scanner;
public class AzaleaInfo
public static void mainString args
Scanner scnr new Scanner
System.in;
int numAzaleas;
Your code goes here
System.out.printlnnumAzaleas;
numAzaleas ;
System.out.printlnnumAzaleas;
Failed to compile
AzaleaInfo.java:: error: variable numAzaleas might not have been initialized
System.out.println numAzaleas;
error
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
