29 peso y edad

import java.util.*;
public class pesoyedad {
    public static void main(String[] args) {
        int x,y,z;
        String w= new String ("");
            Scanner calimba = new Scanner(System.in);
        System.out.println("Introdusca el peso");
        x=calimba.nextInt();
        System.out.println("Introdusca edad");
        y=calimba.nextInt();
        w=prom(x,y);
      System.out.println(w);

    }
    public static String  prom(int q, int t){
       String g = new String ("");
        if (q>30){
            if(t<60){
                g="Gordo y joven";
            }
 else {
                g="Gordo y viejo";
 }
        }
            else{

    if(t<60){
        g="flaco y joven";
    }

 else{
                g="flaco y viejo";             
 }       
        }
        return g;
    }
}