( např.: 351 na třistapadesátjedna )
Děkuji





Kód: Vybrat vše
System.out.print("Zadejte číslo pro převod:");
int cislo;
cislo = sc.nextInt();
String numero = Integer.toString(cislo);


Kód: Vybrat vše
int length = numero.length();
String a,b,c;
for (;length>0; i-=3){
a = numero[i-2] || 0;
b = numero[i-1] || 0;
c = numero[i];
}Kód: Vybrat vše
String[] jednotky = {"", "jedna", "dvě", "tři", "čtyři", "pět", "šest", "sedm", "osm", "devět"};Kód: Vybrat vše
numero.charAt(length-2);
Kód: Vybrat vše
int length = String.valueOf(cislo).length();




Kód: Vybrat vše
String stovky = nazvyStovek[2];
String desitky = nazvyDesitek[5];
String jednotky = nazvyJednotek[1];




