Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by java_exam_2 ( 6 years ago )
String numbers = "9.27;5.33;11.0;157";
String[] split = new String[4];
double result = 0;
split = numbers.split(";");
for(int i=0; i<split.length; i++){
result += Double.parseDouble(split[i]);
}
System.out.println("Suma: "+result+" Średnia: "+result/split.length);
Revise this Paste