Fields should be declared at the top of the class, before any method declarations, constructors, initializers, or inner classes. The class name 'sendData' doesn't match '[A-Z][a-zA-Z0-9]*'. Also, just a recommendation don't do everything in one class as said by the Single-responsibility principle
Fields should be declared at the top of the class, before any method declarations, constructors, initializers, or inner classes. The class name 'sendData' doesn't match '[A-Z][a-zA-Z0-9]*'. Also, just a recommendation don't do everything in one class as said by the Single-responsibility principle