while continuous loop with exit condition

import java.io.*;
import java.io.IOException;
//javac clas_name.java
public class test
{
public static void main(String[] args) throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
// needs throws IOException
String str="";
while(!str.equals("exit"))
{
System.out.print("Type some thing : ");
str =br.readLine();
System.out.println("hello : "+ str);
continue;
}
}