Search:

Type: Posts; User: Norm

Page 1 of 20 1 2 3 4

Search: Search took 0.61 seconds.

  1. Replies
    9
    Views
    88

    Re: Stuck on 12 node star assignment

    I'm surprised that you don't know how to define a variable and give it an initial value. An example:

    int valToPrint = 0; // define a variable to hold the value to print
  2. Replies
    3
    Views
    41

    Re: help to find common String not simple !!

    First look at what tools may be useful: The String class's methods and some collection class like Map or Set to hold parts of the String as the search is made.
  3. Replies
    9
    Views
    88

    Re: Stuck on 12 node star assignment

    Perhaps you need two variables: one to count to 12 and one to hold the value to print.
  4. Replies
    3
    Views
    41

    Re: help to find common String not simple !!

    What have you tried?

    What are the rules for examples 2 and 3? The search looks a lot more complicated there.

    Be sure to wrap your code with code tags:


    YOUR CODE GOES HERE

    to get...
  5. Thread: If Statements

    by Norm
    Replies
    3
    Views
    50

    Re: If Statements

    Please explain in more detail.

    Please copy and paste the full text of any error messages and paste it here.
    Also post the full text of the code, be sure to wrap your code with code tags:

    ...
  6. Replies
    9
    Views
    88

    Re: Stuck on 12 node star assignment

    What is the logic for generating that sequence of numbers?

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


    YOUR CODE GOES HERE

    to get highlighting and preserve formatting.
  7. Replies
    4
    Views
    76

    [SOLVED] Re: Run cmd commands through java

    Ok, that would mean that the java code does what is expected.
    Do a search on the start command to see how it works and if it can be used the way you want.
  8. Replies
    4
    Views
    76

    [SOLVED] Re: Run cmd commands through java

    Have you tried the program with other DOS commands? What happened?
  9. Re: Convert color image to grayscale and then to sepia

    What is the for loop at the end of the posted code supposed to do?
    The values of red and blue do not change in the loop.
    What will the image look like if all the pixels are set to the same values...
  10. Re: Make JComboBox fill with id's from xml file

    See the tutorial for how to use a JComboBox: How to Use Combo Boxes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
  11. Replies
    3
    Views
    73

    Re: how to read a netcdf files

    Yes, you can read it. The FileInputStream class's methods would allow you to read the bytes from the file.
  12. Re: Convert color image to grayscale and then to sepia

    Nothing is changed inside that loop. The set methods are called with the same values everytime around the loop.


    Only one. The inner one isn't in {}s
    But that makes no difference. The loop is...
  13. Re: Convert color image to grayscale and then to sepia

    The for statements are missing {}s that should enclose the code that is inside of the loop. Never leave off the {}s. Indenting a statement does NOT put it inside of a for loop. Use {}s

    This for...
  14. Re: Convert color image to grayscale and then to sepia

    Please copy the full text of the error message and paste it here and the full java code that has the errors.
  15. Re: Convert color image to grayscale and then to sepia

    The variable: red is defined 3 statements before that statement in the posted code.
    Are you sure you posted the code with the error?


    int red = p.getRed(); //<<<<<<< Defined...
  16. Re: Convert color image to grayscale and then to sepia

    I think the code should use the new values to change the image.
  17. Re: Convert color image to grayscale and then to sepia

    Is that what they are supposed to be? Is the code doing what you expect? If not, explain what it is not doing correctly.

    The for loop is inside the if() test for red < 63. Why is there a loop...
  18. Re: Convert color image to grayscale and then to sepia

    Add some more println() statements so you can see what statements are being executed and what the values of the variables are as they are changed. The code in post#9 doesn't have any print...
  19. Re: Beginnner Java, Assignment Help (Ending a code)

    Have you read the tutorial about the if statement:
    The if-then and if-then-else Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)
  20. Re: Interprocess communication between Java and non-java program

    What do you mean by "send to"? How is the other program expecting to receive an input while it is running?
  21. Re: Beginnner Java, Assignment Help (Ending a code)

    The code recognizes the out of range numbers and prints a message.
    What action do you want the code to take after the message is printed?
  22. Replies
    11
    Views
    86

    Re: android app connected to a server

    I think HTTP POST would be fine.

    That looks like an exact repeat of the previous post.
  23. Re: Beginnner Java, Assignment Help (Ending a code)

    Look at using an if/else statement to control what happens. The pseudo code in post#4 showed an idea.

    Please post the current version of the code. Be sure to wrap it in code tags.
  24. Re: Beginnner Java, Assignment Help (Ending a code)

    What problems are you having with that?
  25. Re: Beginnner Java, Assignment Help (Ending a code)

    Is that the program's output? Can you explain what is wrong with it?
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4