I wanted to find out in options.bldata if firstLaunch= was written, for this I wrote the following code:
File file = new File("options.bldata");
    Scanner scanner = new Scanner(file);
    while (scanner.hasNextLine()) {
        
        String line = scanner.nextLine();
        if (line == "firstLaunch=") {
            
            System.out.println("123");
            
        }
        
    }
when it finds a line with firstLaunch= it should print 123, but I don't know why it doesn't print 123 even if firstLaunch= is in the file.
 
     
     
    