Can't figure out how to write this program.

I am trying to write a program that can calculate whether a six digit number is a zero weight number or not. It is zero weight if:

(sum of oddly positioned digits)-(sum of evenly positioned digits)=0

Here is what I have so far but I think I am pretty far off track because I get a load of errors when I try to compile it.

import javax.swing.JOptionPane;

public class A1Q2

{

public static void main(String[] args)

{

String inputString; // For reading input

Int inputInteger; // Integer for testing

Int weight; // Weight of inputInteger

Int sumEven; // Sum of even positioned digits

Int sumOdd; // Sum of odd positioned digits

Int first; // Digit in first position

Int second; // Digit in second position

Int third; // Digit in third position

Int fourth; // Digit in fourth position

Int fifth; // Digit in fifth position

Int sixth; // Digit in sixth position

Int oneDigit; // Integer reduced to one digit

Int twoDigit; // Integer reduced to two digits

Int threeDigit; // Integer reduced to three digits

Int fourDigit; // Integer reduced to four digits

Int fiveDigit; // Integer reduced to five digits

Int sixDigit; // Integer with six digits

// Get integer to be tested

inputString =

JOptionPane.showInputDialog("Enter a six digit number to determine \n"+

" if it is a zero weight integer.");

// Convert the input to an int

inputInteger = Integer.parseInt(inputInt);

// Break down the integer to each digit

(Int)inputInteger%10 = sixth;

(Int)inputInteger/10 = fiveDigit;

(Int)fiveDigit%10 = fifth;

(Int)fiveDigit/10 = fourDigit;

(Int)fourDigit%10 = fourth;

(Int)fourdigit/10 = threeDigit;

(Int)threedigit%10 = third;

(Int)threedigit/10 = twoDigit;

(Int)twoDigit%10 = second;

(Int)twoDigit/10 = oneDigit;

(Int)oneDigit%10 = first;

// Determine the sum of the oddly positioned numbers

sumOdd = first + third + fifth;

// Determine the sum of the evenly positioned numbers

sumEven = second + fourth + sixth

// Calculate if the integer is a zero weight integer

weight =

sumEven - sumOdd;

// Display the results

JOptionPane.showMessageDialog(null,"Zero Weight Numbers \n" +

"Input: " + inputInteger + "\n" +

"Weight: " + weight + "\n" +

"End of Processing";

}

}