PRO192_-_SU_2023_-_Block_5_-_2_754.webp
Minh Đức1

PRO192_-_SU_2023_-_Block_5_-_2_754.webp

(Choose 1 answer)
What is the output when you try to compile and run the following program?
public class Main {
public static void main(String argv[]){
String s = "Hi there";
int pos = s.indexOf(" ");
String r = s.substring(0, pos);
String s2 = new String(new char[] {'H','i'});
if(r.equals(s2))
System.out.println("EQUAL");
else
System.out.println("NOT EQUAL");
System.out.println();
A. EQUAL
B. NOT EQUAL
C. EQUAL NOT EQUAL
Finish
E1

Thông tin

Category
PRO192
Thêm bởi
Minh Đức1
Ngày thêm
Lượt xem
6,086
Lượt bình luận
25
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_2_754.webp
File size
46.5 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom