Search:

Type: Posts; User: Norm

Page 1 of 20 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    7
    Views
    75

    Re: Error Message NoClassDefFoundError

    Why does the error message say otherwise?


    What about the contents of the commandline from when the program is executed that shows what is on the classpath?
  2. Replies
    1
    Views
    16

    Re: Decomplie .class file

    You can look at the contents of the .class file with a hex-editor.
  3. Replies
    7
    Views
    75

    Re: Error Message NoClassDefFoundError

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



    **YOUR CODE GOES HERE**


    to get highlighting and preserve formatting.

    Where is the code for the ProjectSetup class? What is on...
  4. Re: How to determine if object creation is to high ...

    Don't worry about it unless it is a problem.
  5. Thread: Underflow in Byte

    by Norm
    Replies
    3
    Views
    49

    Re: Underflow in Byte

    A byte has 8 bits. If this binary int value with these 32 bits (111111111111111111111111 1001 0000) is placed in a byte, the resulting 8 bits in the byte would be: 1001 0000.
    The high order 24...
  6. Replies
    1
    Views
    29

    Re: What to call this? 9.31

    I think it is called a block: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/expressions.html
  7. Replies
    2
    Views
    36

    [SOLVED] Re: Don't understand why "if else" don't work.

    Use the equals method to compare the contents of String objects, not the == operator.

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



    **YOUR CODE GOES HERE**


    to get...
  8. Replies
    7
    Views
    75

    Re: Error Message NoClassDefFoundError

    Is it on the classpath?

    What is the contents of the commandline when the program is executed?


    That stacktrace looks like it is from your program, not the tomcat program. What code is at...
  9. Thread: Underflow in Byte

    by Norm
    Replies
    3
    Views
    49

    Re: Underflow in Byte

    Use the Integer class's toHexString to see what the bits are for the value 400 = x190 or toBinaryString gives 1 1001 0000
    The sign bit for the low order byte is 1 making it negative.
    Casting it...
  10. Replies
    7
    Views
    75

    Re: Error Message NoClassDefFoundError

    Can you post the command line you use to start Tomcat?
    What jar file is the org.apache.commons.io.FileUtils class file in?



    Can you copy the lines that follow that line in the stack trace and...
  11. Re: How to output a pyramid of stars from a recursive method using JOptionPane

    I'm not very good with recursion. Here is a link to a forum that has more academic helpers: http://www.coderanch.com/forums
  12. Re: How to output a pyramid of stars from a recursive method using JOptionPane

    That should be included as comments in the code so anyone reading the code will know what the method is supposed to do.

    Please add comments to the code to describe what each method is supposed to...
  13. Re: How to output a pyramid of stars from a recursive method using JOptionPane

    Can you post the program's current output and add some comments saying what is wrong and show the desired output?


    Note: The code has too many blank lines that make it harder to read and...
  14. Thread: java oop

    by Norm
    Replies
    1
    Views
    94

    Re: java oop

    Do you have any java programming questions?

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



    **YOUR CODE GOES HERE**


    to get highlighting and preserve formatting.
  15. Replies
    1
    Views
    120

    Re: Changing code into mvc code

    Try your question on this forum: http://www.coderanch.com/forums
    There are more helpers with an academic outlook there.

    Continued here: https://coderanch.com/t/721553/java/change-normal-code-mvc
  16. Thread: using selection

    by Norm
    Replies
    1
    Views
    97

    Re: using selection

    What have you tried?
    Be sure to wrap all posted code in code tags.
  17. Replies
    63
    Views
    514

    Re: Help with calculator

    My suggestion is to start over and follow a design for the steps the program should take. Trying to fix what you have now will be harder than writing a new program from the beginning. The current...
  18. Replies
    63
    Views
    514

    Re: Help with calculator

    Here is a sample design:
    get user input into a string
    find the operator that should be in the middle of the string -> if not found give error and exit
    split the string into three parts: first...
  19. Replies
    63
    Views
    514

    Re: Help with calculator

    There is a lot of repeated code that should be in a method.
    The test using isDigit should be in a method that is passed the Strings: tal1 and tal2 one at a time to test if they are valid numbers.
    ...
  20. Replies
    63
    Views
    514

    Re: Help with calculator

    The posted code is missing the import statements and the declaration of the class.
  21. Replies
    3
    Views
    116

    Re: Can someone help me with my code?

    Try it and see what happens.

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



    **YOUR CODE GOES HERE**


    to get highlighting and preserve formatting.
  22. Replies
    63
    Views
    514

    Re: Help with calculator

    Please post the full code so we can see what it is doing.
  23. Replies
    63
    Views
    514

    Re: Help with calculator

    Did you try it? What happened?
  24. Replies
    63
    Views
    514

    Re: Help with calculator

    Here is how you use a static method:
    returnValue = TheClassName.theMethodName(theArgs);

    Read the API doc for specifics: http://docs.oracle.com/javase/8/docs/api/index.html
  25. Replies
    63
    Views
    514

    Re: Help with calculator

    If you want to test if all the characters in a String are digits, use the Character class's method to test each character in a loop.

    Another way would be to test if each character is >= '0' and <=...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4