CSI104_-_SP23_-_FE_4_90.webp
Hữu Nghĩa

CSI104_-_SP23_-_FE_4_90.webp

Answer (Choose 1 answer)
What is the output when you try to compile and run the following program?
import java.util.*;
public class Main{
public static void main(String argv[]){String x = "ABC$PQUV";
B. ABC true
int k = x.indexOf("$");
C. AB true
String y = x.substring(0,k);String z = new String(new char[] {'A', 'B', 'C'});
D. ABCP true
System.out.print(y + " ");
System.out.println(y.equals(z));
}
A. ABC false
E. ABCP false


Exit 28

Thông tin

Category
CSI104
Thêm bởi
Hữu Nghĩa
Ngày thêm
Lượt xem
785
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom