Skip to content

Files

Latest commit

 

History

History
46 lines (24 loc) · 1.05 KB

README.md

File metadata and controls

46 lines (24 loc) · 1.05 KB

FString-For-Java

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.

Features

  • 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

Usage/Examples

This is tested if the variable is public. Code is open for any improvements/suggestions.

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

Authors