Hi, I'm a junior computer science student and I'm currently new to this forum. Im having some problems understanding the code excerpt from a book (see code excerpt below). The code is suppose to delete characters from a string, based on the given prototype: void RemoveChars(char str[], char remove[]); str[] contains the entire string e.g "Hello World" while remove contains the characters to be removed from str[] e.g remove[]={'e','o','r','d'}; Once removed str[] should now be: "Hll Wl" void RemoveChars(char str[], char remove[]){ int srcIndex, destination, removeArray[256]; // Initialize all elements in the lookup array to be 0. for(srcIndex=0; srcIndex<256; srcIndex++){ …

Member Avatar
Member Avatar
+0 forum 10

HI, I wish to get the values from the drop down menu selected by a user from the HTML page and pass this value into my servlet program for processing. In my servlet program, I've used the getParameter() function to obtain the value from the drop down menu selected. <SELECT name=Day> <OPTION value="" selected>- Select -</OPTION> <OPTION value=Sunday>Sunday</OPTION> <OPTION value=Monday>Monday</OPTION> <OPTION value=Tuesday>Tuesday</OPTION> <OPTION value=Wednesday>Wednesday</OPTION> <OPTION value=Thursday>Thursday</OPTION> <OPTION value=Friday>Friday</OPTION> <OPTION value=Saturday>Saturday</OPTION> </SELECT> String days= request.getParameter("Day"); System.out.println("DAY =" +days); However, the value of the parameter "day" seems empty. May I know what is the correct method of getting the value selected from …

Member Avatar
Member Avatar
-1 forum 16

Hi, I'm a freshman in computer science and a new member to this forum. I'd like to convert the string representation of a number e.g "456" into its integer equivalent i.e. 456. As for character representation of single digits e.g. "6", I'm able to convert it to its integer equivalent by doing: char myChar = "6"; int asciiVal = myChar - '0'; //produces the integer 6 now. Could anyone show me how the string representation of a number like "456" can be converted to its integer equivalent? Thanks Danny

Member Avatar
Member Avatar
+0 forum 25

HI, I'm new to the licensing mechanism, and I would like to gain an understanding on the Java FlexLM API usage. I was wondering if anyone could point me to any examples or share any of their references as to how the FlexLM Java APIs are being used to segregate the certain components from the from the entire software packaging based on the licenses available ? Thanks Danny

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a script which is to perform the following task: 1) check for files in a particular directory. 2) The directory should contain 4 files in the form of: <OSSInstance>_<OSSName>_BSC<Nokia BSC ID>.<counter no>.<YYYYMMDDHHMM>.<gid> whereby: OSSInstance - a combination of alphanumeric characters OSSName -a combination of alphanumeric characters Nokia BSC ID - a combination of alphanumeric characters counter no - Digits 1,2, 3 and 72 only YYYYMMDDHHMM - basically a numeric value denoting timestamp of the file i.e. 200603130500 gid - a numeric value for a particular process An example of the file is shown below as: 1003_oxnn2_BSC48379.72.200603130500.768751 3)There …

Member Avatar
+0 forum 0

Hi, I'm a newbie with ANT. I have a ANT build.xml file in which I'm attempting to separate certain packages from different requirements of the built. As an example, if I have a software which consists of packages A,B,C,D and E. I have customer whom are purchasing the software, but are not interested in the incorporating packages D and E. The customer is only interested in using packages A,B and C. At the same time, I have another customer who is interested in using the entire package of the software i.e. A ...E. How do I implement flags in ANT …

Member Avatar
Member Avatar
+0 forum 3

The End.