169 Posted Topics
Re: what are your inputs for weight, height, age, and gender?? | |
Re: Have you tried running your code?? Be more specific with your questions. Try running it and if an error pops then you can get back to us regarding that error. If not then your code is good. | |
Re: What is wrong?? Are you having error messages?? Or the program outputs unexpected results?? | |
Re: I once encountered the same problem using this if condition[CODE]if (array[head]==search)[/CODE] try coding it this way[CODE]if (array[head].equals(search)) {[/CODE] and see what happens. Hope this helps (",). | |
Re: Use arrays. Create an array of letters a to z. For each letter you need to decode, look for it in the array. then output the array[i + 1] element. | |
Re: You see that the common formula is A + (0) * D = A A + (1) * D = A + D A + (2) * D = A + 2D ..... You will notice that only the multiplier for D is the variable that is incremented by 1 … | |
Re: I havent tried your code yet but since you declare menu as int, I think you dont need to enclose it in single quiotes in the case statement. try removing those and see what happens. | |
Re: Please show some effort. Try coding it a little. If you encountered errors then you can ask us. We're not here to do it for you. | |
Re: StaticX, Just to clarify (see Ezzaral's post), you are not just getting a random element from your fruits array. What happens is you are generating a random index within your array length [CODE]int rnd = generator.nextInt(array.length)[/CODE] and then returning the element associated with that generated index [CODE]return array[rnd][/CODE] | |
Re: Have you learned substrings yet?? If yes, then I think this may help. 1. Computer generates a seven-digit number. 2. Get 7-digit Input from user (Store this as String length 7). 3. You need to clarify the rules. If all numbers match, he wins the bumper prize but since they … | |
Re: 1. What are the errors that you are getting?? 2. Note that in your main method you have this [CODE]Student sw = new Student("Sefakor","1112348"); [/CODE] but your method student has this [CODE]public Student(String name, int id) [/CODE] Notice that id is int but you passed it with a "". 3. … | |
Re: Just create an int counter so that everytime wrong password is entered then you add 1 to this counter. Check if it is < 11. If not, then call your method where you show your dialogbox and repeat the process until user gets the password or until he exceeded 10 … | |
Re: doctorjo5, Basically you are heading in the right direction. You just need to do the 0 - 100 score validation and add a main method that will call your other methods and I think everything will be set. | |
Re: iraqi4life, I think you are trying to assign the days of the month and you want that since max no of days in a month is 31, 31 should be max value. Since you are assigning a constant to the day variable, then you should have full control of the … | |
Re: Juicebox, In your example the box should look like this right?? ***** ***** ***** ***** ***** ***** ***** 5 columns, 7 rows of *'s. | |
Hi everyone. Im trying to upload a file to an ftp server. I found this code in the internet but its not working for me. Can anyone please tell me where the error is?? This is my code [code]import java.io.*; import org.apache.commons.io.FileUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; public class … | |
can anyone help me with my problem.. im basically creating a jsp page with two parts. First is the menu which is located on the left side and then the full page on the right. im using tables and not frameset. table have frame="rhs" for a vertical line to seperate … | |
Name: Eric Nickname: Eric, Kire Height: 5'6'' Weight: 117(?) Hair: Black Eyes: Black Location: Manila,Phil Age: 24 Hobbies: Watching movies, reading books(sci-fi, new age, religion), playing DOTA (but not lately, been sooo very busy), playing chess and badminton (",) Relationship Status: Single Fav Music: Love Songs, Acoustic (im a kind-of-sentimental … | |
Help! Im trying to overwrite a certain record in a text file (basically a log in log out file). Im using Random Access File. I tried to write the updated record using writeBytes but what happens is that it was APPENDED after the record i wish to overwrite. from 150.20.111.0&2010062216:06:31 … |