import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        // sample
        double one,two,three;
        double sum,avg;
        one = 1.2;
        two = 3.7;
        three = 4.1;
        System.out.println(one + " " + two + " " + three);
        sum = one + two + three;
        avg = sum / 3.0;
        System.out.println("合計値:" + sum);
        System.out.println("平均値:" + avg);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: