N
newjava
Gast
Hallo ich bin totaler anfänger.
könnt mir bitte jemand sagen, wieso das Programm nicht ausgeführt werden kann?
Ich wollt 5 Integer Variablen eingeben und 5 Float Variablen und ausgeben.
gruß
könnt mir bitte jemand sagen, wieso das Programm nicht ausgeführt werden kann?
Ich wollt 5 Integer Variablen eingeben und 5 Float Variablen und ausgeben.
Code:
import java.io.*;
public class Eingabe
{
public static void main(String [] args)
throws IOException
{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int i;
int izahl;
float Fzahl;
// Ein Int Zahl eingeben
for(i = 0; i <= 5; i++){
izahl = Integer.parseInt();
System.out.println("Eingabe:"+izahl);
}
for(i = 0; i <= 5; i++){
Fzahl = Float.parse.float();
System.out.println("Eingabe"+Fzahl);
}
}
}
gruß