How to return int and string attributes in a single java method : I would like to return the values of all the attributes from the Baseballplayer class. The method that needs to do this must be the public string getBaseballPlayer(int i) method (because I need to reference this method inside getBaseballPlayers() to return all the values as an arraylist of strings) I'm having trouble doing this because all the attributes have different datatypes (int, string, Height). 

Ive tried doing this 

    public String getBaseballPlayer(int i){
 
    ArrayList <String> bArray = new ArrayList <String>();  
        bArray.add(getHometown());
        bArray.add(getState());                       
        bArray.add(getHighSchool());
        bArray.add(getPosition());

however it only works for the string methods, and doesn't necessarily return the actual values but rather the get methods for each string attribute.

    public class BaseballPlayer extends Player implements Table {    
    
      private int num;
      private String pos;
         
    public BaseballPlayer( int a, String b, String c, int d, 
    String e, String f, String g, Height h){
            
            
            super(a,ft,in,c,d,e,f,ht);
            num = a;
            pos = b; 

    }

    public BaseballPlayer(){}

       
    //Returns the value of a specific attribute. The input parameter start 
      with 0 for the first attribute, then 1 for the second attribute and so 
      on.
    //you can use getBaseballPlayer(int i) in getBaseballPlayers( ) with a for 
      loop getting each getBaseballPlayer(int i).


    public String getBaseballPlayer(int i){

    ArrayList <String> bArray = new ArrayList <String>();  
        bArray.add(getHometown());
        bArray.add(getState());                       
        bArray.add(getHighSchool());
        bArray.add(getPosition());
        return (bArray);    
    }

    //Returns the value of all attributes as an ArrayList of Strings.
    public ArrayList <String> getBaseballPlayers(){
    }

I'm just looking for the simplest way to return each attributes value, then using that method return each value as an arraylist of strings in another method.