public
____________________
void
____________________
(
String
[
]
args
)
{
/
/
Indicamos
el
tamaño
String
texto
=
JOptionPane
.
showInputDialog
(
"
Introduce
un
tamaño
"
)
;
____________________
num
[
]
=
new
int
[
Integer
.
____________________
(
texto
)
]
;
int
ultimoDigito
;
do
{
texto
=
JOptionPane
.
showInputDialog
(
"
Introduce
numero
entre
0
y
9
"
)
;
ultimoDigito
=
Integer
.
parseInt
(
texto
)
;
}
____________________
(
!
(
ultimoDigito>
=
0
&&
ultimoDigito<
=
9
)
)
;
/
/
rellenamos
el
array
rellenarNumAleatorioArray
(
num
,
1
,
300
)
;
/
/
Creamos
un
array
que
contenga
los
numeros
terminados
en
el
numero
especificado
int
terminadosEn
[
]
=
numTerminadosEn
(
num
,
ultimoDigito
)
;
/
/
Mostramos
el
resultado
,
mira
el
metodo
de
mostrarArrays
/
/
mostrarArrayTerminadosEn
(
num
)
;
mostrarArrayTerminadosEn
(
terminadosEn
)
;
}