Skip to content

chinmay-sawant/FString-For-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages