can you help me how to use methods into this program? I can postanother question and you can help me integrate method into thisprogram.
//Gym.java
import java.util.Scanner;
public class Gym {
// defining all requiredconstants
staticfinal doubleMEMBERSHIP_FEE = 150.0;
staticfinal doubleSENIOR_CITIZEN_DISCOUNT = 0.3;
staticfinal double MONTHLY_FEE= 25;
staticfinal doublePERSONAL_TRAINING_FEE = 45;
staticfinal doubleSPECIAL_DISCOUNT = 0.2;
publicstatic void main(String[] args){
// scanner to read user input
Scanner scanner = newScanner(System.in);
// getting name
System.out.print(“Enter first name: “);
String first = scanner.next();
System.out.print(“Enter last name: “);
String last = scanner.next();
// getting age, assuming age
PayPal Gateway not configured
PayPal Gateway not configured