0
I am new to java and my question is how do i accept charecters in my programs? And also how to convert it into uppercase letter?
4 Respostas
+ 4
inputs? Extracted from https://cheeze.club/w7db
Scanner reader = new Scanner(System.in); // Reading from System.in
System.out.println("Enter a number: ");
int n = reader.nextInt(); // Scans the next token of the input as an int.
Converting to uppercase:
um the .toUpperCase() method i guess
+ 3
You can use reader.nextLine(); if you want.
+ 2
This is my little baby answer
https://code.sololearn.com/cPFHAhJj37nU/?ref=app
+ 1
I mean how to accept alphabets like-- a,b etc