Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

371
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda