All pastes #757807 Raw Edit

Mine

public text v1 · immutable
·published 2007-11-01 17:08 UTC
rendered paste body

//
//   7.0 / 9.0 = (I ANSWER) 0,8
//

        for (int y = 0; y < rounds; y++) {
            if(new DecimalFormat("#.0").format(user_answer[y]) == new DecimalFormat("#.0").format(right_answer[y])){
                ++correct_answers;
                System.out.println(right_answer[y]);
            } else if(user_answer[y] == right_answer[y]){
                ++correct_answers;
                System.out.println("ratt1: " + right_answer[y]);
            } else {
                System.out.println("fel user1: " + new DecimalFormat("#.0").format(user_answer[y])); // ,8
                System.out.println("rätt answer1: " + new DecimalFormat("#.0").format(right_answer[y])); // ,8
            }
        }