answersLogoWhite

0

to input a character follow this code:

InputStreamReader is=new InputStreamReader(System.in);

BufferedReader bf=new BufferedReader(is);

ch=bf.readLine();

//to display a character simply write System.out.println()

i hope dis vl help u

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

To display an input string vertically by c?

// get input char input[256]; gets(input); // print one character on each line int i; for(i = 0; input[i] != '\0'; ++i) { printf("%c\n", input[i]); }


What are input and out put string?

Input strings are character arrays that are initialised from input devices, such as file streams with read access and the keyboard. Output strings are character arrays sent to output devices such as files with write access, the console (display) and printers.


List out the version of java?

Running "java -version" will display the current version of Java.


What is an input display on action replay ds?

What is Input Display on action replay ds?


How do you you Create 2 text-field and 1 button in java using applet and then get the input as integers in 2 text-field and to display the output in label already created when you click the button?

How to you Create 2 text-field and 1 button in java using applet and then get the input as integers in 2 text-field and to display the output in label already created when you click the button? please send immediately,needed urgently


What is the java code to display an error message alerting a user that their input is out of range from 25 to 200?

Example: (the words input and amtTotal are variables) // Determine if the user entered the correct amount if (!(input >= 25 && input <= 200)) System.out.println("You must enter an amount between 25 and 200"); else { System.out.println("Total = $" + amtTotal); }


What is the ' ' called in java?

' ' would be the character for a space in Java.


What is javadoc?

write a java program to display "Welcome Java" and list its execution steps.


Is a display adapter a input or output device?

A display ADAPTER is neither. The Display is an output device.


Determine the highest of the three input numbers using flowchart?

(start) /a=0 c=0\ \b=0 / /input a/ /input b/ /input c/ /a>b\ no /b>c\ yes /display b/ -> (a) \ / \ / yes no /a>c\ no /display c/ -> (a) \ / yes /display a/ <- (a) (end)


How do you take double value input in java programming?

tamayoalfred27y.c


Accept 2 no and display it in java?

package scanPackage; //Importing Scanner import java.util.Scanner; public class display { public static void main(String[] args) { //Creating scanner Object Scanner scan = new Scanner(System.in); //Taking first system input String str1 = scan.nextLine(); //Taking second system input String str2 = scan.nextLine(); //Printing both Input System.out.println(str1); System.out.println(str2); } }