moin Otto :)
Ich habe mir jetzt etwas mit ein paar if abfragen gebastelt und es funktioniert :-)
if-Abfragen? Ich hätte das wahrscheinlich eher über casting gelöst...
StringBuffer buf=new StringBuffer();
buf.append(year);buf.append(month);buf.append(day);+
try{
int result= (new Integer(new String(buf))).intValue();
}catch(NumberFormatException e){
//Dinge tun, falls casting nicht funktioniert
}
liebe Grüße aus Berlin
lina-
--
Self-Code: ie:% fl:( br:^ va:) ls:/ fo:| rl:( ss:) de:] js:| mo:)
Self-Code: ie:% fl:( br:^ va:) ls:/ fo:| rl:( ss:) de:] js:| mo:)