hey ich muss mit bluej einen BMI rechner schreiben das hab ich auch geschafft doch jetzt
soll die meldung kommen wenn das ergebnis über 24 das der typ abnehmen muss doch i-wie kommt bei mir immer ein fehler unzwar "illegal start of type"
kann das jemand berichtige bitte ist ja eigentlich anfänger sachen^^
public class BMI {
private double gewicht;
private double groesse;
private double BMI;
public void wiegen(double wiegen)
{
gewicht = wiegen;
}
public void messen(double messen)
{
groesse = messen;
}
public void BMI_rechne()
{
BMI = gewicht/(groesse*groesse);
}
kann man das da einfach so ohne weiteres in die class reinschreiben ?
kenn mich mit java net wirklich aus, aber das wirkt iwie falsch ^^
Evtl. auch mal die variable oder class umbenennen, vllt. mögen die sich net, wenns die gleichen werte sin?
If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.
After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.
In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.
Sign up now and enjoy the advantages as a registered member.
(This website will be ad-free after a complete free sign up.)