I\'m not an expert, just a beginner. So I kindly ask that you write some code for me.
If I have two classes, CLASS A and CLASS B, and insid
CLASS A
CLASS B
Solution with Java 8
ClassB b = new ClassB(); ScheduledExecutorService executor = Executors.newScheduledThreadPool(1); Runnable task = () -> { b.funb(); }; executor.scheduleWithFixedDelay(task, 0, 10, TimeUnit.MINUTES);