All pastes #739993 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-17 16:48 UTC
rendered paste body
public class TegnLikhet {

	public static boolean Likhet(char t1,char t2) {
		return !(t1>t2 || t1<t2);
	}

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String resultat = "like";
		if (!Likhet(scan.next(),scan.next())) {
			resultat = "u"+resultat;
		}
		System.out.println("Tegnene er "+resultat+".");
	}
}