This is how I ended up solving the problem:
import java.util.*;
public class Kap3Oppg1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int ganger[] =...
Type: Posts; User: EatMyBible
This is how I ended up solving the problem:
import java.util.*;
public class Kap3Oppg1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int ganger[] =...
Thanks to your post, I now see the logical flaw in my program. It currently looks like this:
import java.util.*;
public class Kap3Oppg1 {
public static void main(String[] args) {
Scanner...
I changed it from i<input.length to i<ganger.length. I do not get an error anymore. This is how it runs, regardless of which number I enter:
Tast inn neste tall:
3
Tallet 0 forekom [I@e5b723...
Hello. I am currently a high-school student. As I am going to apply for Computer Science at my local university after the summer, I have bought the book used in the beginners class for programming....