Nikolas cage wrote:... in main class I have constructor which call another class...
Paul Clapham wrote:
As many beginners in Java do, it looks like you think that "calling a class" is a Java concept. But it isn't. You don't call classes in Java. You call methods, which belong to classes.
Nikolas cage wrote:I have problem to change Main class and servlet to call method in the Main class.
Paul Clapham wrote:Then it would help if you told us what the problem is.
Paul Clapham wrote:... You already have code which does that:
Nikolas cage wrote:It does not work.
Nikolas cage wrote:
FileOutputStream fileOut = new FileOutputStream("report/userTrendsIWS-" + dateFormat.format(date) + ".xlsx");