Buggy code:
public class Game { public static ArrayList < Area > lstArea = new ArrayList < Area > ( ) ; public static ArrayList < Demon > lstDemons = new ArrayList < Demon > ( ) ; public static ArrayList < Troll > lstTrolls = new ArrayList < Troll > ( ) ; public static ArrayList < Minion > lstMinions = new ArrayList < Minion > ( ) ; public static ArrayList < Building > lstBuildings = new ArrayList < Building > ( ) ; public static ArrayList < Player > lstPlayers = new ArrayList < Player > ( ) ; public static ArrayList < TroubleMaker > lstTroubleMaker = new ArrayList < TroubleMaker > ( ) ; public static ArrayList < CityAreaCard > lstCityAreaCards = new ArrayList < CityAreaCard > ( ) ; public static ArrayList < GreenCard > lstGreenCards = new ArrayList < GreenCard > ( ) ; public static ArrayList < BrownCard > lstBrownCards = new ArrayList < BrownCard > ( ) ; public static ArrayList < RandomEventCard > lstRandomEventCards = new ArrayList < RandomEventCard > ( ) ; public static ArrayList < PersonalityCard > lstPersonalityCard = new ArrayList < PersonalityCard > ( ) ; public static Bank GameBank = new Bank ( ) ; public static Player GetPlayer ( int PlayerID ) { } public static void SetPlayer ( Player Player ) { } public static Area GetArea ( int AreaID ) { } public static Minion GetMinionsByMinionID ( int MinionID ) { } public static ArrayList < Minion > GetMinionsArrByMinionID ( int MinionID ) { } public static Player getPlayerObjByMinionId ( int minionId ) { } public static ArrayList < Minion > GetMinionsByPlayerID ( int PlayerID ) { } public static ArrayList < Minion > GetMinionsNotOnBoardByPlayerID ( int PlayerID ) { } public static ArrayList < Minion > GetMinionsOnBoardByPlayerID ( int PlayerID ) { } public static ArrayList < Minion > GetMinionsByAreaID ( int AreaID ) { } public static Minion GetPlayerMinionFromArea ( int iPlayerID , int iAreaID ) { } public static String GetActiveMinionsStringByAreaID ( int AreaID ) { } public static String GetActiveMinionsStringByPlayerID ( int PlayerID ) { } public static String GetActiveBuildingsStringByAreaID ( int AreaID ) { } public static String GetActiveBuildingsStringByPlayerID ( int PlayerID ) { } public static boolean SetBuilding ( Building Building ) { } public static boolean SetMinion ( Minion Minion ) { } public static Building GetBuildingsByBuildingID ( int BuildingID ) { } public static ArrayList < Building > GetBuildingsByAreaID ( int AreaID ) { } public static ArrayList < Building > GetBuildingsByPlayerIDAndActiveAndOnBoard ( int PlayerID ) { } public static ArrayList < Building > GetBuildingsByPlayerID ( int PlayerID ) { } public static String AreaWithNoBuilding ( ) { } public static boolean AreaHasABuilding ( int AreaID ) { } public static String GetValidAreasToPlaceBuilding ( int PlayerID ) { } public static String GetAreasHavingMinionOfPlayer ( int PlayerID ) { } public static String GetValidAreasToPlaceMinion ( int PlayerID ) { String strValidAreas = "" ; String strAreasHavingMinion = "" ; strAreasHavingMinion = Game . GetAreasHavingMinionOfPlayer ( PlayerID ) ; if ( ! ( strAreasHavingMinion . isEmpty ( ) ) ) { String [ ] arryAreasHavingMinion = strAreasHavingMinion . split ( "," ) ; for ( int i = 0 ; i < ( arryAreasHavingMinion . length ) ; i ++ ) { <START_BUG> strValidAreas += ( ( ( arryAreasHavingMinion [ i ] ) + "," ) + ( PresentationUtility . GetAdjacentAreas ( Integer . parseInt ( arryAreasHavingMinion [ i ] ) ) ) ) + "," ; <END_BUG> } } if ( ! ( strValidAreas . isEmpty ( ) ) ) { strValidAreas = PresentationUtility . getDistinctCommaSeparatedValues ( strValidAreas . substring ( 0 , ( ( strValidAreas . length ( ) ) - 1 ) ) ) ; } return strValidAreas ; } public static void DisplayAreas ( String strAreaIDsCommaSeparated ) { } public static void DisplayPlayers ( String strPlayerIDsCommaSeparated ) { } public static String GetMinionIDsNotOnBoard ( int PlayerID ) { } public static String AreaWithNoMinion ( ) { } public static String GetPlayerIDsHavingMinionsOnBoard ( ) { } public static String GetBuildingIDsNotOnBoard ( int PlayerID ) { } public static ArrayList < Building > GetBuildingsNotOnBoardByPlayerID ( int PlayerID ) { } public static String GetPlayerIDsHavingBuildingsOnBoard ( ) { } public static Troll GetTrollByTrollID ( int TrollID ) { } public static Demon GetDemonByDemonID ( int DemonID ) { } public static ArrayList < Demon > GetDemonByAreaID ( int AreaID ) { } public static ArrayList < Troll > GetTrollByAreaID ( int AreaID ) { } public static boolean AreaHasDemon ( Integer AreaID ) { } public static boolean AreaHasMinion ( Integer AreaID ) { } public static boolean AreaHasMinionOfPlayer ( Integer AreaID , int PlayerID ) { } public static boolean AreaHasTroll ( Integer AreaID ) { } public static boolean AreaHasTroubleMarker ( Integer AreaID ) { } public static TroubleMaker GetTroubleMarker ( int AreaID ) { } public static boolean removeTroubleMarkerByAreaId ( int areaId ) { } public static PersonalityCard GetPersonalityCardByPlayerID ( int PlayerID ) { } public static String GetTroubleMakerOnBoardAreaId ( ) { } public static TroubleMaker GetTroubleMakerNotOnBoard ( ) { } public static boolean IsGreenCardInDeck ( ) { } public static GreenCard GetGreenCard ( String CardID ) { } public static void SetGreenCardIsPlayed ( String CardID , boolean IsPlayed ) { } public static String GetGreenCardsIDsFromDeck ( ) { } public static String GetRandomGreenCardFromDeck ( ) { } public static boolean SetGreenCardToPlayer ( String CardID , int PlayerID ) { } public static String GetGreenCardActions ( String GreenCardID ) { } public static ArrayList < GreenCard > GetGreenCardByPlayerID ( int PlayerID ) { } public static int GetPlayerGreenCardCount ( int PlayerID ) { } public static ArrayList < CityAreaCard > GetCityAreaCardByPlayerID ( int PlayerID ) { } public static CityAreaCard GetCityAreaCardByCardID ( String CardID ) { } public static void SetCityAreaCard ( CityAreaCard objCityAreaCard ) { } public static String getAdjacentAreas ( int areaID ) { }

Fix:
strValidAreas += ( arryAreasHavingMinion [ i ] ) + ( PresentationUtility . GetAdjacentAreas ( Integer . parseInt ( arryAreasHavingMinion [ i ] ) ) ) ;