SizeScanner | My .net vision on Steffen Gerlach 's Scanner2 | Computer Vision library
kandi X-RAY | SizeScanner Summary
kandi X-RAY | SizeScanner Summary
My .net vision on Steffen Gerlach's Scanner2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SizeScanner
SizeScanner Key Features
SizeScanner Examples and Code Snippets
Community Discussions
Trending Discussions on SizeScanner
QUESTION
So I'm finishing up my code, and encountered an error and don't know why!
The String "Size" is null when it gets to the "baseArea()" Method.
No errors are displayed.
EDIT: Added the Main method of the class, where everything is referenced, please note this is not the full code in the class !
here is the relevant code:
...ANSWER
Answered 2018-Mar-18 at 19:47Your setSize
method gets the size from the Scanner but never actually sets the value of the Size
field, only returns it.
Change the return type of your setSize
method to void
, and replace the return Size;
call in that method with this.Size = Size;
.
Another note, your recursion is also slightly broken. After you call setSize
in the else block, you'll need to return from the method to prevent the field being updated with the invalid Size.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SizeScanner
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page