I need to get variable inString in other class. How can I do this?
inString
public class main { public static StringBuffer inString; public sta
Since you made the field in the class static, you use the class name to access it, i.e.
main.inString