You can get to it by: main.inString
where main
is the name of the class where public static
variable is declared.
More Related Contents:
- Java – public class constructor [duplicate]
- Private class property visible
- How do you make a deep copy of an object?
- Java: Multiple class declarations in one file
- Java synchronized static methods: lock on object or class
- Java : If A extends B and B extends Object, is that multiple inheritance
- Creating a variable name using a String value
- How to synchronize a static variable among threads running different instances of a class in Java?
- what is the Class object (java.lang.Class)?
- What is java pojo class, java bean, normal class? [duplicate]
- How does Java decide when to import?
- Java: Static Class?
- Pros and cons of package private classes in Java?
- Error: Generic Array Creation [duplicate]
- Does Java guarantee that Object.getClass() == Object.getClass()?
- How can I start a new android activity using class name in a string?
- Getting class by its name
- Instantiate private inner class with java reflection
- Loop over all fields in a Java class
- Could not find or load main class with a Jar File
- Final arguments in interface methods – what’s the point?
- Java – get the current class name?
- What is the maximum number of methods a Java class can have?
- How to prevent public methods from being called from specific classes
- Creating the instance of abstract class or anonymous class
- Test if a class contains an instance variable based on its name
- Why can’t a Java class be declared as static?
- Calling static method on a class?
- Class must either be declared abstract or implement abstract method error
- Java: How to limit access of a method to a specific class?