I want to print the value that corresponds to the middle of a string using the Math.ceil() method but I only get it to show the value of the index which is 600. But i want to print the actual character which is an 'A'. How can I do this?

double center = Math.ceil(FileData.length() / 2);
System.out.println(center);