Search:

Type: Posts; User: aw20

Search: Search took 0.10 seconds.

  1. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    move just public, not public Rectangle?
  2. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    import java.util.Scanner;

    /*
    * Stacktrace.in
    * You have a exception , we have a solution
    */
    public class DrawRectange {

    public static void main(String[] args) {
  3. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    ok
  4. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    no I like to learn myself and use your help
  5. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    You can do that? write the code for someone esle?
  6. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    All i need is example of loops controls
  7. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    for (int j= 3; j <= height; j++) {
    }
    if (i%width) == 3)
    System.out.print("#####");


    or
  8. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    Ok

    --- Update ---

    What should I say in if statement for height?
  9. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    Tell me what I should do?
  10. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    or if (width < 1 || width >10 ?
  11. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    I am attempting this myself

    --- Update ---



    public void draw(){
    for(int i = 3; i < width; i++){
    }
    for(int j = 5; j < height; j++){
  12. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    yes i did but can you give me a hint about the code?
  13. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    Like this?

    public void draw(){
    for(int i = 0; i < width; i++){
    System.out.print("#");
    }
    System.out.print("# #");
    }
  14. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    of replace the print("****")
    with a loop to print width number of "*"
    and to add with print("*")
    a loop to print width-2 spaces followed by print("*")
  15. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    Can you give me an example
  16. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    Like this:

    for (int j= 3; j <= height; j++) {
    }
    if ((x>0&&x<height-1)&&(y>0&&y<width-1)){
    System.out.print("# "); {
    }else...
  17. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    ok

    --- Update ---



    public void draw(){
    for(int i = 3; i < width; i++){
    }
    System.out.println("#");
  18. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    Can you show me?
  19. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    yes, that is what I mean. Sorry for confusion. The output for the rectangle look like :
    COP 2253, Workshop6. This program written by Angel Williams

    ###
    # #
    ###

    #####
    # #
    # ...
  20. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Re: Workshop 6

    Yes, i do. Is my code that I wrote right? and how can I drew the method in rectangle?
  21. Thread: Workshop 6

    by aw20
    Replies
    42
    Views
    2,907

    Workshop 6

    Write a Java class definition for class Rectangle. Each object of this class has the following variables:
    height : an integer value representing height.
    width : an integer value representing width....
Results 1 to 21 of 21