I'm a bit lost here...
I've been trying different ways of coding the same thing and keep coming up with the same (or more! :( errors), I'm not sure where I've gone wrong, but I am very much a beginner and may be being too ambitious. A little help would be much appreciated. I'm trying to put together a small program to calculate the hours I will be teaching in any given month - this is what I've got with the fewest errors: public class Program { public static void main(String[] args) { String [][] SummerGroups = {{"A50", "A70", "KA2",},{"A50", "A70"},{"A50", "A70", "KA2"}}; String a = SummerGroups [0][0] + SummerGroups [1][0] + SummerGroups [2][0]; String b = SummerGroups [0][1] + SummerGroups [1][1] + SummerGroups [2][1]; String c = SummerGroups [0][3] + SummerGroups [2][2]; int sum = (2 * 2 * 4); int Sum = (2 * 3 * 4); System.out.println("a = Sum"); System.out.println("b = Sum"); System.out.println("c = sum"); } } So far it seems pretty logical to me, but I'm sure I've missed something! Hopefully you can see from the code what I'm trying to do, but if you're not sure, ask away and I'll answer when I can.