Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Square Factory

Create rectangles with (x,y) points and display to console.

Each element represents coordinates for points in the form (x,y). Rectangles built with odd element point pairs represent top-left points, while even elements represent bottom-right points.

double[][] coords = {
    // rectangle #1
    {1.0 , 1.0},        // element 0 : point #1, bottom-left
    {1.0 , 3.0},        // element 1 : point #2, top-left
    {4.0 , 3.0},        // element 2 : point #3, top-right
    {4.0 , 1.0},        // element 3 : point #4, bottom-right
...
};

About

About Java console program to create squares with X/Y coordinates.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages