Search:

Type: Posts; User: EatMyBible

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    1,375

    Re: Saving information from arrays. I think.

    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[] =...
  2. Replies
    6
    Views
    1,375

    Re: Saving information from arrays. I think.

    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...
  3. Replies
    6
    Views
    1,375

    Re: Saving information from arrays. I think.

    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...
  4. Replies
    6
    Views
    1,375

    Saving information from arrays. I think.

    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....
Results 1 to 4 of 4