21 lines
381 B
Java
21 lines
381 B
Java
import java.util.Arrays;
|
|
|
|
public class Duplication{
|
|
private double[] tab;
|
|
|
|
public Duplication(){
|
|
this.tab = new double[10];
|
|
Arrays.fill(this.tab,5.8);
|
|
}
|
|
|
|
public String toString(){
|
|
System.out.print(Arrays.toString(this.tab));
|
|
System.out.println();
|
|
return "";
|
|
}
|
|
|
|
public static void main (String[] args){
|
|
Duplication tab = new Duplication();
|
|
tab.toString();
|
|
}
|
|
} |