Hello. First of all, hope I'm not writing this in the wrong forum (Doubted about posting this at Java Theory). I'm working on a project where I have a string builder in my main class:
public class Main {
public static void main(String[] args) {
final StringBuilder log=new StringBuilder();
}
}
So I wanna use log in a different class and I have no clue on how to. I tried something like this, but it just keeps ending as an error:
public class Car extends Thread{
Main.log.append("Whatever");
}
Can somebody help me?
Thanks in advance.