169 Posted Topics

Member Avatar for bookworm619
Member Avatar for aishittero

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.

Member Avatar for Taywin
0
82
Member Avatar for Oblivious21

What is wrong?? Are you having error messages?? Or the program outputs unexpected results??

Member Avatar for Oblivious21
0
626
Member Avatar for flyingcurry

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 (",).

Member Avatar for flyingcurry
0
165
Member Avatar for JavaRookie88

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.

Member Avatar for Eric Cute
0
176
Member Avatar for frankel81

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 …

Member Avatar for Eric Cute
0
103
Member Avatar for kyojin

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.

Member Avatar for Eric Cute
0
91
Member Avatar for ADIKTED

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.

Member Avatar for Eric Cute
0
92
Member Avatar for StaticX

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]

Member Avatar for Eric Cute
0
180
Member Avatar for Maxprotect

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 …

Member Avatar for Maxprotect
0
2K
Member Avatar for sefa

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. …

Member Avatar for Eric Cute
-2
138
Member Avatar for Blastoise

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 …

Member Avatar for Eric Cute
0
146
Member Avatar for doctorjo5

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.

Member Avatar for Eric Cute
0
89
Member Avatar for iraqi4life

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 …

Member Avatar for Eric Cute
0
135
Member Avatar for Juicebox

Juicebox, In your example the box should look like this right?? ***** ***** ***** ***** ***** ***** ***** 5 columns, 7 rows of *'s.

Member Avatar for kramerd
0
171
Member Avatar for Eric Cute

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 …

Member Avatar for Eric Cute
0
336
Member Avatar for Eric Cute

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 …

0
91
Member Avatar for Eric Cute

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 …

Member Avatar for fresnavee
0
74
Member Avatar for Eric Cute

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 …

Member Avatar for Eric Cute
0
129