-->
当前位置:首页 > 题库

PROGRAMMING:Construction method

Luz5年前 (2021-05-10)题库358
Please add the following code to complete the output requirements( Note: need to submit full code)

public class Main {
public static void main(String[] args) {
}
}
class RR{
public RR(){
System.out.print("8");
}
public RR(int x){
this();
System.out.print(".");
}
public RR(boolean b){
this(1);
System.out.print("00");
}
}

###Input format:
nothing
###Output format:
Output the following string: 8.00
###Input example:
```in
nothing
```
###Output example:
```out
eight
```






answer:If there is no answer, please comment