Search:

Type: Posts; User: surfbumb

Search: Search took 0.21 seconds.

  1. Replies
    2
    Views
    1,609

    FIXED

    My program runs the way I would like it, but there is text missing from the text file i created. The text that is missing is only linked to a method stemming from an interface class, but the actual...
  2. Reading data from a text file into an object

    Lets say I have several lines of data in a text file...ex...



    Joe Stevens M 40 5
    Maya Moore F 39 3
    Bo Johnson M 25 4


    I want to put all this data into a "payroll" object for later...
  3. Conversion from multiple ints to single string

    I'm passing a bunch of ints to this method...and want to convert them all to one string with spaces in between the ints

    ex. "1 4 8 9"

    I'm not sure how to use the wrapper class of Integer...
  4. Replies
    2
    Views
    1,137

    Re: syntax question

    eh nevermind it was a design issue.
  5. Replies
    2
    Views
    1,137

    syntax question

    lets say i have a string object...this string object holds 3 separate "future" int data types...which i can easily "tokenize" and then convert to an int for a variable to hold.

    ex. "25 5 500"...
  6. Replies
    2
    Views
    1,885

    Re: converting int to char

    I'm not going to throw my code up here...but I am re-initializing the same char variable multiple times.

    The first time......e = Character.forDigit(z,10);....gets executed.....e is what it should...
  7. Replies
    2
    Views
    1,885

    converting int to char

    I just want to convert an integer...say 8....to a char...which will be '8'.


    int z = 5;
    char e;

    e = Character.forDigit(z,10);

    //e should become '5'
  8. Replies
    2
    Views
    1,334

    Help me with my code

    The code in bold is not making sense to me...the string array holds 8 different elements containing 4 characters each. Ex. string[0] = "0010"
    string[1] = "0100"
    ...
  9. Replies
    1
    Views
    1,727

    Easy array question

    Lets say i currently have a character array...{1, 0, 1, 0, 1, 0, 0, 1}

    How can i convert the first four elements of that character array into the first element of a string array?


    This is what...
Results 1 to 9 of 9