Hallo,
hab mal ne kurze Frage bezüglich einem Programm, das ich als Anfänger geschrieben habe:
>>>> Ich muss jetzt hierzu noch ein GUI machen und komme nicht weiter...
Kann mir bitte jemand helfen ?!?!?!
Wäre super...
Gruß
Mo
edit deathbyclown: code tags
hab mal ne kurze Frage bezüglich einem Programm, das ich als Anfänger geschrieben habe:
Code:
/** Creates a new instance of Zinsen */
import java.io.*;
import java.*;
public class Zinsen {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
// TODO code application logic here
InputStreamReader inStream = new InputStreamReader( System.in );
BufferedReader ein = new BufferedReader( inStream );
double Startkapital=0;
double Zins;
double Zinssatz=0;
int Jahre;
double Zinsen;
System.out.print ("Zinsrechner: ");
System.out.println ();
System.out.print ("Geben Sie das Startkapital ein: ");
Startkapital = Integer.valueOf(ein.readLine()).intValue();
System.out.print ("Geben Sie den Zinssatz ein: ");
Zinssatz = Integer.valueOf(ein.readLine()).intValue();
Zins = (Zinssatz/100)+1;
System.out.print ("Startkapital: ");
System.out.println (Startkapital);
for (Jahre=1; Jahre<11; Jahre++)
{
Startkapital = Startkapital*Zins;
System.out.println (Jahre+" .Jahr");
System.out.println (Startkapital);
}
}
}
>>>> Ich muss jetzt hierzu noch ein GUI machen und komme nicht weiter...
Kann mir bitte jemand helfen ?!?!?!
Wäre super...
Gruß
Mo
edit deathbyclown: code tags