阅读以下说明和Java代码,回答问题。
[说明]
已知类Stock和类cxyjava都定义在cxyjava.java文件中,类Stock的定义中第14行前共有四行出现了错误,将下而代码修改正确并完善后的输出结果为:
0:0
1:23
[Java代码]
01
publiC class Stock {
02 static {
03
shares=0;
04 share_val = 0.0;
05
}
06 public Stock( ) {getData(
);}
07 publie Stock(int n, int pr=0){
08 shares=n;
09 share val=pr;
10 getData( );
11 }
12 public void getData( ) {
13
System.out.printin(shares+ ":" +share_val);
14
}
15 private int shares;
16
private int share val;
17 };
18
19 public class cxyjava {
20
public static void main(String args[]){
21 Stock a=
{{U}}(1) {{/U}};
22 Stock b=new Stock(1,23);
23 //其他无输出代码省略
24 }
25 }
请指出错误所在行号并给出该行修改后的完整结果。