Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Why is it not compiling? I don't see any error. D ConstructorClass,java ConstructorMainjava 3 1 package tutorial; 2 public class ConstructorMain 3 public static void
Why is it not compiling? I don't see any error.
D ConstructorClass,java ConstructorMainjava 3 1 package tutorial; 2 public class ConstructorMain 3 public static void main(String[] 4 orCargsobject-new ConstructorClass("kelse Constructorclass ConstructorClassobject new ConstructorClass("Kelsey"); ConstructorClassObject.saying() 6 7 8 D ConstructorClass,java ConstructorMain.java 1 package tutorial; 2 3 public class Constructorclass ( 4 private String girlName; 6 public ConstructorClass (String name) f 7 8 gir!Name name ;I = 10 public void setName (String name) f girlName name 12 13 14 public String getName)f 15 16 17 return girlName; 18 public void saying()f first gf % ", getName()); was System.out.printf("Your 19 20 21 J a Console terminated ConstructorMain [lava Application] CProgram FilesUava'yre 180 181 binljavaw.exe (lan 17, 2019, 8:39:35 AM) Exception in thread "main" java.util. UnknownFormatConversionException: Conversion at java.util.Formatter.checkText (Unknown Source) at java.util.Formatter.parse (Unknown Source) at java.util.Formatter.format (Unknown Source) at java.io.Printstream.format (Unknown Source) at java.io.Printstream.printf (Unknown Source) at tutorial.Constructorclass.saying (ConstructorClass.java:19) at tutorial.ConstructorMain.main(ConstructorMain.java:5)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started