wallet123 15 Junior Poster

what problem are u encountering/?

wallet123 15 Junior Poster

Actually i try to create a method which can call the scanner keyboard
firstly i was trying this

void makeRequest(){
request ="Hello";
}
So i wanna make like
when i call this method it will tell me to input the String by scanning the keyboard
is it possible to do that?
and how to do that plz show it to me i'm kind of stuck at this method

should it be...readLineMethod() ???

Declare a temporary String variable to get the input, and invoke the readLine()method to get input from the keyboard.