(Solved):
Main.java () 1 public class Main \{ public String part8(String val) \{ // Complete this method suc ...
Main.java () 1 public class Main \{ public String part8(String val) \{ // Complete this method such that it returns every part of the string right // before the exclamation mark. // for example - If 'val' is "Hello! How are you?", the method should // return "Hello" // Note: all strings passed to this method will always contain one // exclamation mark. 3 3 12