Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Trying to enter integers into an array, from the user. This is the set of errors I'm getting DuplicateElimination.java:13: error: cannot find symbol Int[] anger
Trying to enter integers into an array, from the user. This is the set of errors I'm getting DuplicateElimination.java:13: error: cannot find symbol Int[] anger = new Int[num]; ^ symbol: class Int location: class DuplicateElimination DuplicateElimination.java:13: error: cannot find symbol Int[] anger = new Int[num]; ^ symbol: class Int location: class DuplicateElimination DuplicateElimination.java:16: error: cannot find symbol System.out.println("Enter an integer between 10 and 100:"+(counter+1)) ; ^ symbol: variable counter location: class DuplicateElimination 3 errors
1 import java.util.*; 2 import java.util.Scanner; 3 4 public class DuplicateElimination { 5 public static void main(String[] args){ 6 int array[] = new int[5]; 7 int num; 8 Scanner input = new Scanner(System.in); 9 10 11 System.out.printf("Enter an integer between 10 and 100:"); 12 num = input.nextInt(); 13 Int[] anger = new Int[num]; 14 15 for (int counter=0; counter < num; counter++);{ 16 System.out.println("Enter an integer between 10 and 100:"+(counter+1)) ; 17 18 } 19 20 } 21 }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started