I get a " java.lang.StringIndexOutOfBoundsException: String index out of range: 0". This seems like it should be too easy to mess up but here I am. Any help would be awsome, Thanks
import java.util.*; public class classPractice2_10 { public static void main(String[]args) { Scanner kb = new Scanner(System.in); double length, width, area, perimeter; char repeat; String input; do { System.out.println("Please enter the length of the room. "); length = kb.nextDouble(); System.out.println("Please enter the width of the room. "); width = kb.nextDouble(); area = length * width; perimeter = (length + length) + (width + width); System.out.printf("The area of your room is %.3f and the perimeter of your room is %.3f \n",area,perimeter); System.out.println("Do you wish to calculate another room? "); System.out.print("Enter Y for yes and N for no "); input = kb.nextLine(); repeat = input.charAt(0); }while (repeat == 'y' || repeat == 'Y'); } }