Me funciona usando el switch de Java.
Código Java:
Ver originalswitch(segundos){
case 1: System.
out.
println("01"); break; case 2: System.
out.
println("02"); break; case 3: System.
out.
println("03"); break; case 4: System.
out.
println("04"); break; case 5: System.
out.
println("05"); break; case 6: System.
out.
println("06"); break; case 7: System.
out.
println("07"); break; case 8: System.
out.
println("08"); break; case 9: System.
out.
println("09"); break; default: System.
out.
println(segundos
);break; }
Y como funciona si se podra hacer en funcion o metodo,
lo eh tratado de pasar a función pero me sale error de sintaxys.
Código Java:
Ver originalfunction convertirNumeros(numero)
{
switch(numero){
case 1: System.
out.
println("01"); break; case 2: System.
out.
println("02"); break; case 3: System.
out.
println("03"); break; case 4: System.
out.
println("04"); break; case 5: System.
out.
println("05"); break; case 6: System.
out.
println("06"); break; case 7: System.
out.
println("07"); break; case 8: System.
out.
println("08"); break; case 9: System.
out.
println("09"); break; default: System.
out.
println(segundos
);break; }
}