r/learnjava • u/luchins • Oct 28 '18
→ /r/javahelp ← Writing a function in java
Hi, I am new to java. Can you please tell me which is the basic semantic to create a function in java? I am at the beginning, I want to know how does it start a function in java
Let's assume I have the object ''player'' and I want this object moves straight up everytime the X button on a joystick is pressed.
Well, basically... how can this be done in java? This is a function, right? Ok, how can it be performed (the basiacally initial code)?
0
Upvotes
1
u/HateTheKardashians Oct 28 '18
Look up MOOC java course. It will teach you the foundation to do what you want to do and a lot more. Finish part 1 & 2.