Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @author Philipp
- */
- public class Tina {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Tina t = new Tina ();
- int irgendwas;
- irgendwas=t.zahl();
- t.ausgabe(irgendwas);
- }
- private int zahl () {
- int i=0;
- //Hier kannst du machen was auch immer du willst. ;-)
- //returned dann die Variable
- return i;
- }
- private void ausgabe (int deineVariable) {
- System.out.println("Wert:" + deineVariable);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment