a) Gave a String algorithm question and asked to solve using Collabedit screen share. String str = "abc123de56" --> give sum of 123 + 56 = 178. b) Asked few Testing related questions on TestNG and Selenium.
Anónimo
String value = "abc123de56"; String firstValue = value.substring(3,6); int firstValueParse = Integer.parseInt(firstValue); String lastValue = value.substring(8,10); int lastValueParse = Integer.parseInt(lastValue); int sum = firstValueParse + lastValueParse; System.out.println(sum);