Add the lines to it that you want and declare its arguments as needed.
I'm new to Java and still learning stuff. I'm having problems understanding methods and arrays, I'm learning more in the Internet than in my classes. But I'm trying to read more and watch vids on Java.
Btw these lines are the ones I wanted to convert into a method.