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...
Type: Posts; User: surfbumb
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...
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...
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...
eh nevermind it was a design issue.
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"...
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...
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'
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"
...
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...