Skip to content

Instantly share code, notes, and snippets.

@Alkimisti
Created March 1, 2021 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alkimisti/078d20dedd8797470a5ab83dabb485e1 to your computer and use it in GitHub Desktop.
Save Alkimisti/078d20dedd8797470a5ab83dabb485e1 to your computer and use it in GitHub Desktop.
public class BooleanToString {
public static void main(String[] args) {
boolean b1 = true;
String s1 = String.valueOf(b1);
System.out.println("Vlera është: " + s1);
boolean b2 = false;
String s2 = String.valueOf(b2);
System.out.println("Vlera është: " + s2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment