I'm making a really simple program that sets a class' variables to specific values depending on the user's input. I keep getting this error:

Static Error: Bad types in assignment: from Class<ClassA> to Class

And that's all it says. It compiles perfectly and nothing is wrong syntactically, but it just won't run. Any help you could give is much appreciated. The code is as follows:

import java.util.*;

class ClassA{
int var1, var2, var3, var4, var5, var6; //six variables
Scanner r = new Scanner(System.in);
private int[] array1 = {16, 14, 13, 12, 11, 10}; //values to be assigned to array2
private int[] array2 = {0, 0, 0, 0, 0, 0};

//Loop through and assign values of array1 to array2
for (int i = 0; i < array1.length; i++){
System.out.println("Choose 1\n1. Var1\n2. Var2\n3. Var3\n4. Var4\n5. Var5\n6. Var6");
int choice = r.nextInt();

//If array2's value has already been assigned, return and rechoose
if(array2[choice-1] != 0){
System.out.println("Already chosen.");
array2[choice-1] = array1[i];
//set variables according to array2's order
var1 = array1[0];
var2 = array1[1];
var3 = array1[2];
var4 = array1[3];
var5 = array1[4];
var6 = array1[5];

public static void main(String [] args){
ClassA a = new ClassA();

//Print out variables of a
System.out.print("" + a.var1);
System.out.print("" + a.var2);
System.out.print("" + a.var3);
System.out.print("" + a.var4);
System.out.print("" + a.var5);
System.out.print("" + a.var6);