Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

can't print a rectangle

$
0
0
Hi all.. i have a question.
i started to read some tutorials in java,but i think that the lesons that im reading are not very clear.
Here's what i don't understand
System.out.println(new Rectangle(5, 10, 20, 30));
is this pease of code sopose to print a rectangle on the screan
or i has some other purpose.The output i get is ->java.awt.Rectangle[x=5,y=10,width=20,height=30] which don't make any sense to me

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>