Advertisement
Guest User

Untitled

a guest
May 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. public class groups
  2. {
  3.  
  4. public static void main(String[] args)
  5. {
  6.  
  7.     char group = "Kalousek, Draxo, Rožek";
  8.     char group2 = "Ty, Já, Somebody else";
  9.  
  10.  
  11.    
  12.     if(group || group )
  13.     {
  14.      
  15.       getFirstgroup(group);
  16.       getSecondgroup(group2);
  17.       System.getDetails();
  18.    
  19.     }
  20.  
  21. }
  22.  
  23. public static char getFirstgroup(char data_array)
  24.   {
  25.  
  26.   if(in_array(data_array, "Kalousek"))
  27.     {
  28.       return "This is group of people, which I hate.";
  29.     }
  30.  
  31.   }
  32.  
  33. public static char getSecondgroup(char data_array)
  34.   {
  35.  
  36.   if(in_array(data_array, "Ty")
  37.     {
  38.       return "This is group of people, which I love";
  39.     }
  40.  
  41.   }  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement