reverse a string with for loop

//import java.lang.reflect.*;
import java.io.*;
public class Test_this {
static public void main( String[] args )throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Type name: ");
String str ="";
System.out.print(str.toString());
str = br.readLine();
if((str !="") | (str != null)){
process_this pt = new process_this();
pt.method_parse(str);
} } }

class process_this {
public void method_parse(String str)throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String s = str;
char[] c_array = s.toCharArray();
while (s!=null) {
if (s.equals(".")) break;
int n = c_array.length;
for (int i=0; i<n/2; i++) {
char c = c_array[i];
c_array[i] = c_array[(n-1)-i];
c_array[(n-i)-1] = c;
}
System.out.println(new String(c_array));
s = br.readLine();
}
} catch (IOException e) {
System.out.println(e.toString());
}}
}