Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

373
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda