28 October 2004 - java_dev (original) (raw)
01:52 am - |
---|
| | 02:50 pm - ex_bluelili this is my first programming class ever so bear with me if this question seems totally stupid...on a lab assignment i am working on it asks you to "add statements to the program to concatenate the digits in the new base to basBNum and then print the answer...You can check out the actual assignment here:http://www.csee.usf.edu/~cop2510/labs/ch2/sec2.3-2.4/BaseConvert.htmlWhat I don't understand is how to concatenate that into the String baseBNum??- first off String baseBNum = new String ("");what the hell does that mean?? i understand the new operator creates the object, but I don't understand why the ("") are there? I just don't get how to assign those numbers to the baseBNum |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |