daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Aug 19th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class BuecherDaten3
  2. {
  3.  
  4. String buch1;
  5. String buch2;
  6. String buch3;
  7.  
  8.            
  9.     public void sucheBuch (String buch)
  10.     {
  11.         if (buch == "buch1")
  12.         {
  13.             System.out.println("Autor: Autor1 Erscheinungsjahr: 2005");
  14.         }
  15.         else
  16.         {
  17.         }
  18.         if (buch == "buch2")
  19.         {
  20.             System.out.println("Autor: 2 Erscheinungsjahr: 2");
  21.         }
  22.         else
  23.         {
  24.         }
  25.         if (buch == "buch3")
  26.         {
  27.             System.out.println("Autor: 3 Erscheinungsjahr: 3");
  28.         }
  29.         else
  30.         {
  31.         }
  32.     }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top