booleanliteraldemo.java
来自「Java版的SAT求解器」· Java 代码 · 共 17 行
JAVA
17 行
package positronic.satisfiability.demos;import positronic.satisfiability.elements.*;public class BooleanLiteralDemo{ public static void main(String[] args) throws Exception { IBooleanLiteral booleanLiteral1 = BooleanLiteral.getBooleanLiteral(BooleanVariable.getBooleanVariable("x"),true); System.out.println(booleanLiteral1); IBooleanLiteral booleanLiteral2 = BooleanLiteral.getBooleanLiteral(BooleanVariable.getBooleanVariable("y"),false); System.out.println(booleanLiteral2); IBooleanLiteral booleanLiteral3 = BooleanLiteral.getBooleanLiteral(BooleanVariable.getBooleanVariable("x"),true); if(booleanLiteral1==booleanLiteral3) System.out.println("booleanLiteral1 is the same object as booleanLiteral3."); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?