Ask your own question, for FREE!
Computer Science 12 Online
OpenStudy (anonymous):

input"enter the charac=",a where a is a string please tell me how to write this statements in java and input "a"

OpenStudy (anonymous):

please help me

OpenStudy (hba):

Do you want to input a character or a string?

OpenStudy (hba):

import java.util.Scanner; Public static void main(String [] args){ Scanner input = new Scanner(System.in); String a; System.out.print("enter the charac="); a= input.nextLine(); }

OpenStudy (anonymous):

thanks

OpenStudy (hba):

no problem :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!