Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,939 questions

51,876 answers

573 users

How to print the value of the Boolean variable using printf() in Scala

1 Answer

0 votes
printf("Boolean = %b\n", true)
printf("Boolean = %b\n", false)

var b1:Boolean = true
var b2:Boolean = false
          
printf("b1: %b\n", b1) 
printf("b2: %b\n", b2) 

 
 
/*
run:
   
Boolean = true
Boolean = false
b1: true
b2: false
 
*/

 



answered Dec 1, 2024 by avibootz

Related questions

1 answer 176 views
1 answer 188 views
188 views asked Oct 18, 2021 by avibootz
2 answers 90 views
90 views asked Sep 23, 2024 by avibootz
1 answer 148 views
2 answers 80 views
1 answer 75 views
...