Did you try doing this? What did compiler do?
Type: Posts; User: Mr.777
Did you try doing this? What did compiler do?
The error like
means that you have declared but forgot to initialize the variable.
So, simply initialize the variable with any initial value. In this case, most common is null or "" (empty...
Either input what your program demands or change the program to get input what you want it to get.
You mean the String "square"? or the dimensions for square?