1. 

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, WS10/11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Fabian Liebl
* @version 1.0, 10/06/2010
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.096
*/

import java.io.*;

public class Main {

public static void main(String[] args) {
BufferedReader inputReader = new BufferedReader(new InputStreamReader(System.in));
int numberOfRequests = 0;
int number1 = 0;
int number2 = 0;
try {
numberOfRequests = Integer.parseInt(inputReader.readLine());
} catch (IOException e) {
System.out.println("IOException reading number of requests");
return;
}

for (int i = 0; i < numberOfRequests; i++) {
try {
String[] line = inputReader.readLine().split(" ");
number1 = Integer.parseInt(line[0]);
number2 = Integer.parseInt(line[1]);
} catch (IOException e) {
System.out.println("IOException reading numbers for request " + i);
}
if (number1 > number2) {
System.out.println(">");
} else {
if (number1 < number2) {
System.out.println("<");
} else {
System.out.println("=");
}
}
}
}

}

2.

/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, WS10/11
* Problem: 11172 Relational Operator
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2113
*
* @author Manuel Hager
* @version 1.0, 10/11/2010
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.108
*/

import java.io.*;

public class Main
{
public static void main(String[] args)
{
try
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

String currLine = reader.readLine();

int number = Integer.parseInt(currLine.trim());

for(int i = 0; i < number; i++)
{
currLine = reader.readLine();

String[] parts = currLine.split(" ");

int val1 = Integer.parseInt(parts[0]);
int val2 = Integer.parseInt(parts[1]);

if (val1 == val2)
System.out.println("=");
else if (val1 > val2) {
System.out.println(">");
}
else
System.out.println("<");
}

reader.close();
}
catch(Exception ex) {
throw new RuntimeException(ex);
}
}
}