Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

Identify the elements that make up the employee reward package.

Answered: 1 week ago

Question

Understand the purpose, value and drawbacks of the interview.

Answered: 1 week ago