定义布尔类型和字符类型变量,并赋值,输出变量值!

2024-12-31 21:04:10
推荐回答(3个)
回答1:

//Test.java
public class Test
{
public static void main(String[] args)
{
boolean b=true;
char c='c';
System.out.println(b);
System.out.println(c);
}
}

回答2:

bool br = 3>5 string str = "字符串"。System.out.println(br);System.out.println(str);

回答3:

bool b=true;char c='a';System.out.println(br);System.out.println(c);