Java program: ISBN calculated by other 9 digits?

Hi,

I need to create a program in which the 10th digit is the checksum. The program is to prompt the user to enter the first 9 digits and displays the 10 digit ISBN(including leading zeros). Last digit is denoted by an X. I have come up with this so far... But, I know I am still pretty far off. Could someone help me get this program going in the right direction.

Also thank you for all of those that were helping me with the JAVA pattern design. I am still working on it.

Thanks

Diana

Import java.util.scanner;

Public class ISBN {

public static void main(String [] args) {

Scanner input = new Scanner (System.in);

System.out.println ("Enter International Standard Book Number:");

int N = new Integer.parseInt(args [0]);

int sum = 0

for (int i = 2; i <=10; i++){

checksum = (d1 * 1 + d2 * 2 + d3 * 3 + d4 * 4 + d5 * 5 + d6 * 6 + d7 * 7 + d8 * 8 + d9 * 9) % 11;