Results 1 to 2 of 2
  1. #1
    fataguila is offline Member
    Join Date
    Jan 2010
    Posts
    4
    Rep Power
    0

    Default Need help with short problem

    First year student and I have a problem I'm trying to make a program for a homework, just gotta figure out that when I enter a number it moves to an array but in whole number and one number per slot... such as if I enter 345 the 3 goes into vec[0], 4 into vec[1], and 5 into vec[2]; I already know how to make an array depending. I know how to do the rest would be grateful if anyone can help. Sorry for my english being as that it's my second languaje and not living in america.

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Look at the API docs for String. There is a method there that actually has Array in the name, and that does what you need.

Similar Threads

  1. Short Circuiting?
    By Philly0494 in forum New To Java
    Replies: 12
    Last Post: 11-12-2009, 11:45 AM
  2. Passing short value as parameter
    By javanewbie83 in forum New To Java
    Replies: 16
    Last Post: 07-16-2008, 06:27 AM
  3. Short-cut key
    By tskumarme in forum New To Java
    Replies: 2
    Last Post: 05-28-2008, 05:16 PM
  4. why doesn't this short applet work?
    By kim85 in forum New To Java
    Replies: 1
    Last Post: 01-20-2008, 09:43 PM
  5. Short/Integer
    By mew in forum New To Java
    Replies: 3
    Last Post: 12-06-2007, 10:28 PM

Posting Permissions

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