find errors and solve | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

find errors and solve

I have practicals tomorrow pls solve as fast you can pls https://code.sololearn.com/cThU569UoA0C/?ref=app https://code.sololearn.com/cThU569UoA0C/?ref=app

28th Mar 2023, 7:10 PM
R Yuvaraj
5 Answers
+ 1
the result should be a smiley,rectangle inside oval shaded,triangle
28th Mar 2023, 7:32 PM
R Yuvaraj
+ 1
pls solve this and send correct answer pls
28th Mar 2023, 7:11 PM
R Yuvaraj
+ 1
this is one of my practical so try to solve pls
28th Mar 2023, 7:30 PM
R Yuvaraj
+ 1
R Yuvaraj there are wrong spellings g.draw RoundedRect(20,20,140,100,10,10); should be g.drawRoundRect(20,20,140,100,10,10); and g.filledOval(65,43,50,50) should be g.fillOval(65,43,50,50) and as others suggested, don't use applet and just modify this tutorial: https://www.javatpoint.com/Graphics-in-swing I successfully compiled and ran the codes below on my laptop. The second version used Graphics2D for anti-aliasing. Unfortunately Sololearn cannot display them. I trust you know how to compile and run a java class and you have the necessary sdk installed. https://code.sololearn.com/c4ZI7BM3pRE5/?ref=app https://code.sololearn.com/cxSNFAKx95Lw/?ref=app
29th Mar 2023, 12:10 PM
Bob_Li
Bob_Li - avatar