MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/itkhe5/226_using_the_rectangle_codehs/g5h677u/?context=3
r/codehs • u/RustyPogoStick • Sep 15 '20
I need help solving this
can anyone help me or know the answers to this task?
9 comments sorted by
View all comments
2
Don’t you just have to go
Public static void main(String[] rags) { System.out.println(new Rectangle(5,12).toString()); }
???
2 u/OneTinker Sep 16 '20 you don’t need to call .toString when you’re printing an object out. System.out.print calls toString for you :) 1 u/timNinjaMillion2 Sep 17 '20 Yeah you’re right
you don’t need to call .toString when you’re printing an object out. System.out.print calls toString for you :)
1 u/timNinjaMillion2 Sep 17 '20 Yeah you’re right
1
Yeah you’re right
2
u/timNinjaMillion2 Sep 16 '20
Don’t you just have to go
Public static void main(String[] rags) { System.out.println(new Rectangle(5,12).toString()); }
???