PJF16

Test

Jan 27th, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. /**
  2.  *
  3.  * @author Philipp
  4.  */
  5. public class Tina {
  6.  
  7.     /**
  8.      * @param args the command line arguments
  9.      */
  10.     public static void main(String[] args) {
  11.        
  12.         Tina t = new Tina ();
  13.         int irgendwas;
  14.        
  15.         irgendwas=t.zahl();
  16.        
  17.         t.ausgabe(irgendwas);
  18.        
  19.        
  20.     }
  21.    
  22.     private int zahl () {
  23.             int i=0;
  24.            
  25.            
  26.         //Hier kannst du machen was auch immer du willst. ;-)
  27.            
  28.             //returned dann die Variable
  29.         return i;
  30.        
  31.     }
  32.    
  33.     private void ausgabe (int deineVariable) {
  34.        
  35.         System.out.println("Wert:" + deineVariable);
  36.        
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment