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

superflous4

By: ace on May 12th, 2010  |  syntax: None  |  size: 1.10 KB  |  hits: 17  |  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() == true && person.getIsAPolitician() == true)
  31.             {
  32.                 return true;
  33.             }
  34.         if (person.getIsASecretary() == true &&  person.getIsMad() == false)
  35.             {
  36.                 return true;
  37.             }
  38.            
  39.         if (person.getIsARabbit() == true &&  person.getIsWonderous() == true)
  40.             {
  41.              return true;
  42.             }
  43.            
  44.             return false;
  45.    
  46.     }
  47.    
  48.    
  49. }