import java.lang.Math; public class Entiexte { private String repr; public Entiexte(int i) { this.repr = Integer.toBinaryString(i); this.repr = this.reverse(this.repr); } public Entiexte(String i) { int temp = Integer.parseInt(i); this.repr = Integer.toBinaryString(temp); this.repr = this.reverse(this.repr); } public String toString() { return this.repr; } private String reverse(String txt) { char temp; char[] txt2 = txt.toCharArray(); for (int i = 0;ie.repr.length()) { return true; } else { if (this.repr.length()=0;i--) { if (this.repr.charAt(i)!=e.repr.charAt(i)) { if (this.repr.charAt(i)=='1') { return true; } else { return false; } } } } } return false; } }