Computer Science, asked by sivanichowdaryuppala, 1 month ago

write the syntax to read text from console string text = system.console().readLine(): in java​

Answers

Answered by prayasbhardwaj786
1

Answer:

1. import java.io.Console;

2. public class Readl {

3. public static void main(String[] args) {

4. Console col = System.console();

5. String fmt = "%1$4s";

6. String alpha = null;

7. if(col==null) {

8. System.out.println("No console to

Similar questions