This code in java
boknam [variable] refers to bookname & bokauthor[variable] referes to bookAuthor just not to get confused [ this is not that point here]
Code
String boknam;
String bokauthor;
System.out.print("Enter bookNAme: ");
boknam = scan.nextLine();
System.out.println("");
System.out.print("Enter bookAuthor: ");
bokauthor = scan.nextLine();
Here I want user to give input bookname & bookauthor but the output is
I
IT skips to take the input as bookNAme, it is only taking input as bookAuthor, please help will be aprreciated
System.out.print("Enter bookNAme: ");
boknam = scan.nextLine();
System.out.println("");
System.out.print("Enter bookAuthor: ");
bokauthor = scan.nextLine();
boknam = scan.nextLine(); This line here is not working, not asking for input NOTE:- THE VARIABLE IS ALREADY ASSIGNED TO DON'T SAY YOU DIDNT INITIALIZED A STRING boknam