Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    That makes it harder to understand when the desired output doesn't look anything like the actual output. Why didn't your desired output have 0s and 1s?

    Start with the actual output. What is wrong...
  2. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    Where does the program print the *s and the .s? I don't see any in the code.

    The output you posted was all 1s and 0s. The program did not print any *s or any .s
  3. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    Sorry, I won't be able to do work on your project, I have projects of my own that I'd rather do.

    I'll try to help you get your program to work, but you'll have to do a bit more.
    Like show what...
  4. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    Too many statements are not indented properly. Only the first and last part of the class should be in the first column. Others should be indented.
    Statements inside {} should be indented 3-4...
  5. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    That formatting is not any better. The }s should be in the same column vertically below the start of the line with the { it pairs with.

    The main() method is not formatted at all.
  6. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    OK.
    For easier and faster testing, hardcode the input values like this:

    String s= "3 4"; //br.readLine(); //<<<<<<<<
    That would make sure that we are all using the same data for...
  7. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    The code posted in post#5 does not compile without errors and can not be executed for testing.
    Please post the same code that you are working with. The code in post#3 and post#5 are different!!!
  8. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    Can you explain what your problem is?
    If the output is wrong, post the output and add some comments saying what is wrong with the output.
  9. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

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


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.

    Remove all the leading *s on each line, but preserve the indentation...
  10. Thread: Exercise problem

    by Norm
    Replies
    19
    Views
    1,837

    Re: Exercise problem

    What have you tried?
Results 1 to 10 of 10