What are theis languages please?
Hi! Do someone know which language is it? (In each exemple) And how to explain theis code (I mean what we did here?) 1/ void functionA(String str) { String result = new String(); for (int i = 0; i < str.Length; i++) { if (!result.contains(str[i])) { result += str[i]; } } Console.WriteLine(result); } 2/ String FunctionB(String sen) { String[] words = sen.toLowerCase().split("[^A-Za-z0-9]"); int maxIndex = 0; for (int i = 1, i < words.length; i++) { if (words[i].length() > words[maxIndex].length()) { maxIndex = i; } } return words[maxIndex]; } 3/ void functionC(Event e) { switch (e.name) { case "click": Console.WriteLine("Button clicked"); break; //... case default: Console.WriteLine("Unknown event occurred"); break; } }