&&(与),||(或),|,!(非) 只能用于布尔值
//: object/test.java package object;
import java.util.*; public class Test{
public static void main(String[] args)
{
System.out.println(3<3&&5>6);//ok
//! System.out.println(3&&5); //ng
}
}
2022-09-13 22:32:25
&&(与),||(或),|,!(非) 只能用于布尔值
//: object/test.java package object;
import java.util.*; public class Test{
public static void main(String[] args)
{
System.out.println(3<3&&5>6);//ok
//! System.out.println(3&&5); //ng
}
}