Search:

Type: Posts; User: Norm

Page 1 of 20 1 2 3 4

Search: Search took 0.48 seconds.

  1. Re: I wanted to output the string itself, but the output looks like it's been encrypted or something

    The code uses an index 11 that is past the end of the list. The list has less that 12 elements.
    Check that the code does not use an index past the end of the list.

    The code needs to test the...
  2. Replies
    7
    Views
    49

    Re: Help me please with Shape hierarchy

    Do you have any more questions?
  3. Replies
    7
    Views
    49

    Re: Help me please with Shape hierarchy

    What program does that message come from?


    Can you follow that program's suggestions to change your code to satisfy that program?

    Also try executing the program using the java command so you...
  4. Replies
    7
    Views
    49

    Re: Help me please with Shape hierarchy

    Make sure all inner classes are static.

    Please edit your post and wrap your code with code tags:



    **YOUR CODE GOES HERE**


    to get highlighting and preserve formatting.
  5. Re: How i can create a ListView from a Selection

    That shows an empty list.
  6. Replies
    7
    Views
    49

    Re: Help me please with Shape hierarchy

    The non static inner classes can only be created in an instance of their enclosing class.
    It should compile if the classes are changed to static by adding the keyword static before the keyword...
  7. Thread: help me plz

    by Norm
    Replies
    1
    Views
    29

    Re: help me plz

    Define the variable(and give it a default value) in the scope where you want to access it. Then at inner scopes you can give it values and use those values.

    Please edit your post and wrap your...
  8. Replies
    1
    Views
    46

    Re: Missing a javadoc comment error in Bluej

    The post code is missing the declaration for an enclosing class.

    See the tutorial: https://docs.oracle.com/javase/tutorial/java/javaOO/classdecl.html
  9. Re: socket connection - moving from a single client to multiple clients

    Also posted here: https://coderanch.com/t/711766/java/socket-connection-moving-single-client

    http://www.javaprogrammingforums.com/cafe/6776-problems-cross-posting.html
  10. Replies
    6
    Views
    98

    Re: Need Java help on this detail attached

    Ask your instructor if the assignment is to be written in javascript or in java.
  11. Replies
    2
    Views
    58

    Re: help with parameters in FileChooser

    FileChooser belongs with the javafx classes. Try using the JFileChooser class. It is part of the swing classes.
  12. Replies
    5
    Views
    59

    Re: Problems with replacing indexs in an array

    Because the logic was wrong.
    There was no need for a nested loop.
    The program is simply swapping elements from index starting at 0 (in j) with those from index starting at 10 (in i)
  13. Replies
    5
    Views
    59

    Re: Problems with replacing indexs in an array

    What does the value of 8 represent? Why was that value chosen as a loop start point?


    I don't understand what those instructions say. Can you show an example on an array with numbers in order:...
  14. Replies
    5
    Views
    59

    Re: Problems with replacing indexs in an array

    Can you post the different results that show what you are talking about? Add some comments to the output describing the problem and show the desired output.
  15. Re: socket connection - moving from a single client to multiple clients

    Normally the server starts a new thread for each client when it connects. The server should be able to handle several clients at the same time.
  16. Replies
    8
    Views
    77

    Re: Inheritance problem

    Yes, but where is it actually being done? The code must be executed to have any effect on a variable's value.
    Is the code executing?
    Prove it by adding some print statements to print out the...
  17. Replies
    8
    Views
    77

    Re: Inheritance problem

    I don't see any code that sets the value of commission in the Policy class. Where is that done?

    Add a print statement following all the statements that compute the value of commission that prints...
  18. Replies
    8
    Views
    77

    Re: Inheritance problem

    Is 0.0 the correct value? What is the correct value?
    Where is the variable that is printed given a value? I see a variable named commission that is initialized to 0.0.

    Where does the String:...
  19. Replies
    8
    Views
    77

    Re: Inheritance problem

    Can you copy the contents of the console window that shows the program's input and output and paste it here?
    Add some comments where there is unexpected results shown. For example: <<<<<< This...
  20. Replies
    40
    Views
    277

    Re: simple soclet communication between 2 PCs

    Strange. I've never seen console output in reverse order. Usually the top is the oldest and the bottom the youngest.
  21. Replies
    1
    Views
    48

    Re: Can't run my JDK on windows 8.1

    You don't run the JDK from an icon in the Control panel. I don't know why there is a problem with that icon.

    If the JDK is installed, there should be a bin folder inside the installation folder...
  22. Replies
    40
    Views
    277

    Re: simple soclet communication between 2 PCs

    server is a variable. It should be reference to a class with the method start().


    On all exception messages I've seen, the lines starting with at are not on the first line. The first line does...
  23. Replies
    40
    Views
    277

    Re: simple soclet communication between 2 PCs

    It is missing the first line(s) that gives the type of exception.


    What variable on line 1720 has the null value? Backtrack in the code to see why.

    Please answer this question:
    Do the...
  24. Re: My copied array is empty, and I don't know why.

    Where does the code change any values in the valuesFound array?



    if(i == value) { // compares value of array index to user's input

    What is the purpose of comparing user's input against...
  25. Replies
    40
    Views
    277

    Re: simple soclet communication between 2 PCs

    You need the full stack trace to see where that exception happened.


    Yes

    Do the programs work with the localhost address when the server and client code are executed on the same PC?
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4