What's wrong with my code đ€đ€
import java.util.*; public class Program { public static void main(String[] args) { char firstname,lastname,gender,email,password; try{ Scanner in=new Scanner(System.in); System.out.println("Enter first name"); firstname=in.nextChar(); System.out.println("Enter last name"); lastname=in.nextChar(); System.out.println("Enter your gender M/F"); gender=in.nextChar(); System.out.println("Enter your email address"); email=in.nextChar(); System.out.println("Enter new password"); password=in.nextChar(); //Displaying output System.out.println("Welcome to facebook "+firstname+" "+lastname); } catch (Exception e) { } } } https://code.sololearn.com/csQyMxi6zs3D/?ref=app