public static boolean infix_arithmetic_langs(String lang){ return Arrays.asList(new String[]{"javascript","perl","python","java","lua","c","c++","perl","ruby","haxe"}).contains(lang); } public static char last_char(String the_string){ return the_string.charAt((the_string.length())-1); } public static double index_in_array(double[] the_arr,double to_find){ int i=0; while(i=",a,b); } public static String greater_than(String lang,String a,String b){ return infix_operator(lang,">",a,b); } public static String compare(String lang,String a,String b){ return infix_operator(lang,"==",a,b); } public static String concatenate_string(String lang,String a,String b){ if(Arrays.asList(new String[]{"lua"}).contains(lang)){ return infix_operator(lang,"..",a,b); } else if(Arrays.asList(new String[]{"php","perl"}).contains(lang)){ return infix_operator(lang,".",a,b); } else if(Arrays.asList(new String[]{"haskell"}).contains(lang)){ return infix_operator(lang,"++",a,b); } else{ return infix_operator(lang,"+",a,b); } } public static String compare_strings(String lang,String a,String b){ if(Arrays.asList(new String[]{"php","javascript"}).contains(lang)){ return infix_operator(lang,"===",a,b); } else if(Arrays.asList(new String[]{"prolog"}).contains(lang)){ return infix_operator(lang,"=",a,b); } else if(Arrays.asList(new String[]{"python"}).contains(lang)){ return infix_operator(lang,"==",a,b); } else{ return "undefined"; } } public static String indent_line(String line,double number_of_indents){ double i=0; while(i