Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Thecount2

By: ace on May 12th, 2010  |  syntax: None  |  size: 1.26 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. /**
  3.  * Write a description of class Superflu here.
  4.  *
  5.  * @author (your name)
  6.  * @version (a version number or a date)
  7.  */
  8. public class Superfluous
  9. {
  10.     // instance variables - replace the example below with your own
  11.    
  12.  
  13.     /**
  14.      * Constructor for objects of class Superflu
  15.      */
  16.     public Superfluous()
  17.     {
  18.  
  19.     }
  20.  
  21.     /**
  22.      * An example of a method - replace this comment with your own
  23.      *
  24.      * @param  y   a sample parameter for a method
  25.      * @return     the sum of x and y
  26.      */
  27.     public boolean isItSuperfluous(Person person)
  28.     {
  29.         // put your code here
  30.         if (person.getIsAManager() == person.getIsAPolitician())
  31.             {
  32.                System.out.println("is a manager" + person.getIsAManager() + "is a politican"
  33.                + person.getIsAPolitician());
  34.                 return true;
  35.             }
  36.                      
  37.             if (person.getIsASecretary() != person.getIsMad())
  38.             {
  39.                return false;
  40.             }
  41.            
  42.    
  43.         if (person.getIsARabbit() == person.getIsWonderous())
  44.             {
  45.                return true;
  46.             }
  47.             else
  48.             {
  49.                 return false;
  50.             }
  51.    
  52.     }
  53.    
  54.    
  55. }