Search:

Type: Posts; User: Junky

Page 1 of 20 1 2 3 4

Search: Search took 0.34 seconds.

  1. Thread: Stuck in a loop

    by Junky
    Replies
    2
    Views
    425

    Re: Stuck in a loop

    Try printing out the value of 'prompt' to make sure it contains the value you think it should.

    Why do you have it inside a while loop? Loops are used to do something many times. How many times do...
  2. Replies
    2
    Views
    136

    Re: character replacement

    Why bother with any replacing? Loop over String, for each char that is not whitespace print c.
  3. Replies
    7
    Views
    201

    [SOLVED] Re: Encryption Decryption Program (UPDATED)

    One issue you have is that if the code enters either of the loops it can never get out.
  4. Re: my school assignments!! please contribute if you can!!

    What language is that supposed to be? All the code is not inside the main method. There is no "let" in Java. If statements have ( ) around the condition and no ; after it. Why are you using if...
  5. Replies
    7
    Views
    181

    Re: Trying to develop a calculator

    So you would be perfectly happy if I visited a cooking forum and ask where to get parts for a '57 chevy?
  6. Replies
    2
    Views
    240

    Re: Japplet question (java)

    Sure, no probs!

    You relax and put your feet up while I do all your work for you.
  7. Replies
    7
    Views
    181

    Re: Trying to develop a calculator

    Do you realise that this is a Java forum and not a JavaScript forum?
  8. Re: my school assignments!! please contribute if you can!!

    Hi shin for short

    How to get help. Don't just post your assignment. You need to write some code (make an attempt) and ask specific questions. "It doesn't work" is not a question nor is it...
  9. Re: using a scanner class to accept a number between 1 and 10 from the user.

    This isn't a Scanner issue at all, you cannot make the Scanner object accept numbers within a given range. Scanner will accept any input. It is you who needs to write the code to handle that input.
    ...
  10. Replies
    6
    Views
    149

    Re: Having some repetitive errors in my code

    In places your indenting is a mess which makes it hard to read. I see there are break statements but due to the formatting it may be possible that one got missed. You also have nested switch...
  11. Replies
    2
    Views
    208

    Re: Reading 50+ Lines Within Text Files

    Use a loop!
  12. Thread: dat.readInt

    by Junky
    Replies
    2
    Views
    212

    Re: dat.readInt

    No.


    i += i;
    i *= 2;

    Either of those options would double i. As posted above dat is a variable for an InputStream object. It calls the readInt method and the value returned is what is added...
  13. Replies
    2
    Views
    123

    Re: Question about a simple code

    To avoid issues like this I highly recommend you ALWAYS put opening and closing braces around if statements and loops.
  14. Re: need help figuring out why my program terminates at a certain point

    Duplicate post
  15. Re: I need to figure out why this code outputs an error!

    If a Child class constructor does not call a constructor in the Parent class then it will implicitly call the default constructor. Since you have written your own constructor in the Parent class then...
  16. Thread: Fuellogger

    by Junky
    Replies
    2
    Views
    89

    Re: Fuellogger

    2
  17. Re: need help figuring out why my program terminates at a certain point

    If you are expecting the program to ask you to enter another student then how is it supposed to go all the way back to the beginning of your code and start again. Hint: you need to put your code...
  18. Thread: HELP ME!

    by Junky
    Replies
    1
    Views
    138

    Re: HELP ME!

    If that is just a link to your assignment/homework, then I doubt you will get much help. Try writing some code, post it here and ask specific questions.
  19. Replies
    5
    Views
    150

    Re: create search function for image

    What do you mean by database? A simple collection of files stored in a folder on your computer or a fully functioning DBMS type database. If the latter then you should have enough info stored in at...
  20. Re: The program must display the prime numbers lower than a given number and now is not working well at all, please help

    "is not working" provides little to no information. Post error messages, sample input and output etc. The more info you provide the easier it is for us to spot the problem. As I said in another of...
  21. Re: What's wrong with my code? The program always returns that the number is not palindrome and it must recognize if the number is or not palindrome, please help:)

    Inside the loop you are continually changing the value of n therefore whatever value you store in rev it can never be the reverse of the original number as you have lost it. You could have debugged...
  22. Replies
    1
    Views
    181

    Re: Java Tree Graphic

    The best way to get help is to start writing code. When you get stuck, post your code here and ask specific questions. "My code doesn't work" is not specific and not a question. If you say you don't...
  23. Re: incompatible types: void cannot be converted tostring

    Your findProtein method has a return type of void and yet you are trying to store it in a String variable called result. That's a nono!
  24. Re: Cannot add several Items to text field by clicking jbutton

    Thats not much different from what I said. Get all the text you want from the ComboBoxes, create a String, then set that to the text field.
  25. Replies
    1
    Views
    246

    Re: Exception and method delegation

    The Foo2 class is throwing the exception but the Foo class is catching and handling it. If you want the Fragment class to handle the exception then have the Foo class throw the exception as well.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4