Advertisement
Gamebuster

StatementTester

Jun 1st, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public class StatementTester {
  2.     public static void main(String[] args){
  3.         Statement s = new Statement("\"I own a teapot floating in space\"");
  4.         System.out.print("The statement " + s.statement + " is ");
  5.         if (s.isProven() == null){
  6.             System.out.print("not proven");
  7.         }
  8.         else if (s.isProven() == false){
  9.             System.out.print(false);
  10.         }
  11.         else{
  12.             System.out.print(true);
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement