Because these are all declarations. You are allowed to initialize any variable during declaration, but they are still declarations. You are creating 7 instance variables with default (package private) visibility.
ok that is fine.But my problem is something else.Please read the code snippet given below carefully.
I am developing a java program to read the values of some memory parameters from a URL and to insert them automatically in an excel sheet three times in a day.Initially I am testing it on a text file and demo code is given below.
given code is only able to create one row after headers.I have checked the value of r(indicating rows)for each run of run() method.it is increasing continously and output file(MyWorkBook) size is also increasing continously.also I tried to print FileOutputStream for each run,it is also giving me some value instead of null.
It is also confirmed that content is not overwritten for each run,because first row is giving the time of first run of run() method.
Can you suggest me if there is any error in way,I am doing the things.
the output console,data of excel sheet and input is given below.