I'm in desperate need of help for my eksamensprojekt

You've got code that isn't in a function, two functions called "setup", something called a "testatur" which isn't defined, I have absolutely no idea what this public static void main(String[] args) (note the use of code tags there) is, and you have assignments where you should have comparisons.

I'm astonished you managed to write so much without attempting to compile it.