Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class groups
- {
- public static void main(String[] args)
- {
- char group = "Kalousek, Draxo, Rožek";
- char group2 = "Ty, Já, Somebody else";
- if(group || group )
- {
- getFirstgroup(group);
- getSecondgroup(group2);
- System.getDetails();
- }
- }
- public static char getFirstgroup(char data_array)
- {
- if(in_array(data_array, "Kalousek"))
- {
- return "This is group of people, which I hate.";
- }
- }
- public static char getSecondgroup(char data_array)
- {
- if(in_array(data_array, "Ty")
- {
- return "This is group of people, which I love";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement