your main method signature has void as a return type but in you main method body you are trying to return an integer value and that is also local value in the for loop. If you change you main method...