Hello Everyone,
Below is the program created for implementing F String in Java. (A pythononic way to call variables but in java)
This program was created by me while I was learning Java.
Program uses Java's reflection API while helps to resolve the variables.
- F String Support For Java
- fs.fprint(Instance,"Your text {yourvariable}") // can be used for printing the mesage
- fs.getFString(Instance,"Your text {yourvariable}") // can be used for storing the value of F String in variable
import <path to fString>FString
FString fs = new FString(); // Create Instance For FString
YourClass I1=new YourClass(); // Where the variables are declared
example -
public int a = 10;
fs.fprint(YourClassInstance,"Your Message {yourPublicvariable}"); /
fs.fprint(I1,"Hello There {a}"); // This Prints the Output
output - Hello There 10