Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

369
Views
The import java.util.Arrays cannot be resolved

i'm using Ubuntu 16, and started tutorial on java, and now i have one issue with my code, the method "Arrays.toString()", like all path "java.util.Arrays", is not found, and i really do not know, what i need to do.

This is my code:

package introtocs.arrayalgorithms;

import java.util.Arrays; // First issue here

public class FillingAndDeleting {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // Filling Arrays
        int[] oneThroughTen = new int[10];
        for (int i = 0; i < oneThroughTen.length; i++) {
            oneThroughTen[i] = i + 1;
            System.out.println(Arrays.toString(oneThroughTen)); // Second here
        }

    }

}

Please help, i cant continue.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

this code runs normally on my eclipse, i think maybe you didn't build the path, so there is a error to import the Arrays utils.

over 4 years ago · Santiago Trujillo Report

0

The solution is add file to current eclipse project, "util -> Arrays.java", make package util, and after download file Arrays.java from link

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!