public class Barcode
{
    public static final char FRONT = 'F';
    public static final char BACK = 'B';
    public static final char LEFT = 'L';
    public static final char RIGHT = 'R';

    public Barcode (String entry, boolean debug)
    {
        _data = entry;
        _theSeat = null;
        _debug = debug;
    }

    public final Seat getSeat ()
    {
        if (_theSeat == null)
        {
            int range = 127;

            for (int i = 0; i < _data.length(); i++)
            {

            }
        }

        return _theSeat;
    }

    private String _data;
    private Seat _theSeat;
    private boolean _debug;
}
@@ -412,17 +412,52 @@
     int 
-r
+startRange = 1;%0A            int endR
 ange = 1
@@ -461,9 +461,9 @@
 = 12
-7
+8
 ;%0A%0A 
@@ -528,16 +528,398 @@
       %7B%0A
+                switch (_data.charAt(i))%0A                %7B%0A                    case FRONT:%0A                    %7B%0A                        endRange = endRange / 2;%0A                    %7D%0A                    break;%0A                    case BACK:%0A                    %7B%0A                        startRange = endRange / 2;%0A                    %7D%0A                    break;%0A%0A                %7D
 %0A       

Update Barcode.java