How to unlimted-repetition loop in java?

really required to unlimited repetition this operation until close it manually

        String file = "list.txt";
        try (BufferedReader fileReader = new BufferedReader(new FileReader(file))) {
			String currentLine;
			while ((currentLine = fileReader.readLine()) != null){
			    driver.get(currentLine);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

Someone here can help?

JavaScript is not Java, those are two completely different languages, I’ve moved this to General, someone with experience in Java may be able to help