I'm trying to check if the text file contains "Circle" or "Square" and if so to read the rest of the line. I have tried using scan.next()=="Circle"
but that doesn't seem to work.
EDIT: The numbers refer to x and y coordinates which will be implemented into an instance of a class. In this case, Square and Circle.
Text File:
Circle 50 60 40 50 50
Square 250 260 45 -50 -50