Results 1 to 3 of 3
  1. #1
    james99obrien is offline Member
    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Default Help with user input and arrays

    I have tried many different ways to get a user input(Integer) and put it into an array using scanner, but I always get errors, such as cannot convert int to int, does anyone know an effective way of doing this? Thanks!

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Help with user input and arrays

    The best way for us to help you fix your errors is for you to show us your code attempts and any errors that this attempt generates.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,662
    Blog Entries
    7
    Rep Power
    21

    Default Re: Help with user input and arrays

    Quote Originally Posted by james99obrien View Post
    but I always get errors, such as cannot convert int to int, does anyone know an effective way of doing this? Thanks!
    If your compiler complains about converting an int to an int it must've been smoking funny sigarets; please be more exact when formulating the problem.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Using arrays to get user input and display it
    By mc54321 in forum New To Java
    Replies: 4
    Last Post: 10-30-2012, 01:01 AM
  2. Arrays made from user input
    By sonofJack3 in forum New To Java
    Replies: 15
    Last Post: 12-01-2011, 06:18 AM
  3. Replies: 4
    Last Post: 03-09-2011, 05:54 AM
  4. Need help getting input(first/last name) from user
    By nightrise420 in forum New To Java
    Replies: 11
    Last Post: 09-11-2010, 03:09 AM
  5. Making arrays by reading user input
    By apfroggy0408 in forum New To Java
    Replies: 23
    Last Post: 04-30-2008, 01:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •