Normal
Hey supi ich habs endlich DankeHabe die Formel noch mit einer Unterabfrage umgestellt:[code=Java]public static boolean enthaelt(long zahl, int ziffer) { return (zahl <= 9) ? zahl == ziffer : ((zahl % 10) == ziffer) ? true : enthaelt((zahl / 10), (ziffer));[/code]:applaus:
Hey supi ich habs endlich Danke
Habe die Formel noch mit einer Unterabfrage umgestellt:
[code=Java]public static boolean enthaelt(long zahl, int ziffer) {
return (zahl <= 9)
? zahl == ziffer
: ((zahl % 10) == ziffer)
? true
: enthaelt((zahl / 10), (ziffer));[/code]
:applaus: