Buggy code:
public class MainActivity extends AppCompatActivity { static final int UKUPNO_BILJAKA = 25 ; static int [ ] biljkeChecked = new int [ MainActivity . UKUPNO_BILJAKA ] ; public static int countBiljke ( ) { } public static int pozicijaBiljkeSaIdom ( int position ) { } public static int pozicijaBiljkeUSelektovanim ( int id ) { } class Kljuc { int id_lokacije ; int id_biljke ; public Kljuc ( int k1 , int k2 ) { } } public static InputStream isVrstePolena ; public static InputStream isNormalizacija ; public static InputStream isStanice ; public static InputStream isStepeni ; public static InputStream isTezine ; public static ArrayList < MainActivity . Kljuc > pozicije = new ArrayList < > ( ) ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public static HashMap < String , Integer > biljke_id = new HashMap < > ( ) ; public static HashMap < String , Integer > biljke_grupa = new HashMap < > ( ) ; public static HashMap < String , Integer > biljke_alergenost = new HashMap < > ( ) ; public static HashMap < String , Integer > lokacija_id = new HashMap < > ( ) ; public static HashMap < String , Double > lokacija_visina = new HashMap < > ( ) ; public static HashMap < String , Double > lokacija_sirina = new HashMap < > ( ) ; public static HashMap < Integer , String > id_biljke = new HashMap < > ( ) ; public static HashMap < Integer , String > id_lokacija = new HashMap < > ( ) ; public void zadaj_grupu ( String s , String g ) { } public void generisi_haseve ( ) { try { StringBuilder str = new StringBuilder ( ) ; BufferedReader br = new BufferedReader ( new InputStreamReader ( MainActivity . isVrstePolena , "UTF-8" ) ) ; br . readLine ( ) ; String line = null ; int i = 0 ; while ( i < ( MainActivity . UKUPNO_BILJAKA ) ) { line = br . readLine ( ) ; String [ ] parts = line . split ( "," ) ; MainActivity . id_biljke . put ( ( ( Integer . parseInt ( parts [ 0 ] ) ) - 1 ) , parts [ 2 ] ) ; MainActivity . biljke_id . put ( parts [ 2 ] , ( ( Integer . parseInt ( parts [ 0 ] ) ) - 1 ) ) ; zadaj_grupu ( parts [ 2 ] , parts [ 3 ] ) ; MainActivity . biljke_alergenost . put ( parts [ 2 ] , Integer . parseInt ( parts [ 4 ] ) ) ; i ++ ; } br . close ( ) ; str = new StringBuilder ( ) ; br = new BufferedReader ( new InputStreamReader ( MainActivity . isStanice , "UTF-8" ) ) ; br . readLine ( ) ; line = null ; i = 1 ; line = br . readLine ( ) ; while ( i < 17 ) { String [ ] parts = line . split ( "," ) ; if ( parts [ 1 ] . equals ( "Beograd<seq2seq4repair_space>-<seq2seq4repair_space>Novi<seq2seq4repair_space>Beograd" ) ) { String [ ] pp = parts [ 1 ] . split ( "<seq2seq4repair_space>" ) ; parts [ 1 ] = pp [ 0 ] ; } <START_BUG> MainActivity . id_lokacija . put ( Integer . parseInt ( parts [ 0 ] ) , parts [ 1 ] ) ; <END_BUG> MainActivity . lokacija_id . put ( parts [ 1 ] , ( ( Integer . parseInt ( parts [ 0 ] ) ) - 1 ) ) ; MainActivity . lokacija_sirina . put ( parts [ 1 ] , Double . valueOf ( parts [ 2 ] ) ) ; MainActivity . lokacija_visina . put ( parts [ 1 ] , Double . valueOf ( parts [ 3 ] ) ) ; i ++ ; line = br . readLine ( ) ; } br . close ( ) ; for ( String s : MainActivity . biljke_id . keySet ( ) ) System . out . println ( ( "<seq2seq4repair_space>" + s ) ) ; System . out . println ( "RANDOM" ) ; for ( String s : MainActivity . lokacija_id . keySet ( ) ) System . out . println ( ( "<seq2seq4repair_space>" + s ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } public static void sortiraj_listu ( ArrayList < String [ ] > lista , final int col_godina , final int col_mesec , final int col_dan ) { } public static class FetchData extends AsyncTask < String , Void , String > { private String [ ] getDataFromJson ( String JsonStr ) throws JSONException { } String JsonString = null ; @ Override protected String doInBackground ( String ... params ) { } } private static double [ ] update_stepene ( double [ ] glavni , ArrayList < double [ ] > stepeni ) { } private static double update_pojedinacni_feature ( double [ ] glavni , double [ ] stepeni ) { } private static double mnozenje_vektora ( double [ ] prvi , double [ ] drugi , double bias ) { } private static double sigmoid ( double x ) { } private static ArrayList < double [ ] > listaStepena ; private static double [ ] bias ; private static ArrayList < double [ ] > listatezina ; private static double [ ] mean ; private static double [ ] std ; private void citanje_iz_fajlova ( ) { } public static int predikcija ( double dan , double mesec , double godina , double alergenost , double duzina , double sirina , double idGrupe , double idVrste , double idLokacije ) { } }

Fix:
MainActivity . id_lokacija . put ( ( ( Integer . parseInt ( parts [ 0 ] ) ) - 1 ) , parts [ 1 ] ) ;