Main.java 464 B

12345678910111213141516171819202122232425
  1. public class Main {
  2. static void tom() {
  3. System.out.println("Tomaten");
  4. }
  5. static void kohl() {
  6. System.out.println("Rotkohl Gruenkohl");
  7. }
  8. static void gen(String str) {
  9. System.out.println(str);
  10. }
  11. public static void main( String[] args ) {
  12. tom();
  13. kohl();
  14. gen("Gurken");
  15. tom();
  16. kohl();
  17. gen("Spinat");
  18. tom();
  19. kohl();
  20. gen("Kohlrabi");
  21. }
  22. }