Blz pessoal,
Estou com uma certa dificuldade em converter um Array int[] em uma variável String, vejá só o conteudo do array é esse "int b[] = new int[5], os valores seriam tipo 5,8,10,12,15" eu gostaria de converter essa array numa variável String tipo "String a = '58101215'" alguem ai poderia da uma luz, segue um codigo pequeno que gera mais ou menos o que eu quero..
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package exercicio;
import java.util.Random;
/**
*
* @author Fernando
*/
public class bingo {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
boolean salvar = false;
int numero = 0;
Random nr = new Random();
int b[] = new int[5];
for (int c = 0; c < b.length; c++) {
numero = 1 + nr.nextInt(15);
salvar = true;
for (int cc = 0; cc < b.length; cc++) {
if (b[cc] == numero) {
salvar = false;
c--;
}
}
if (salvar) {
b[c] = numero;
System.out.println(b[c]);
}
}
System.out.println(b.toString());
}
}