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