0
import java.util.Scanner;
/**
Demonstrates the use of Scanner class
@author Nikhil Joshi
*/
public class asciicode {
public static void main(String[] args) {
//create a scanner object
Scanner console = new Scanner(System.in);
/*get full name using nextLine
nextLine gets the next line - up til user hits enter
*/
System.out.print("Enter the integer: ");
int integer = console.nextInt();
//print the results
System.out.println(); //print a blank line
System.out.println("Your ascii character is " + (char)integer);
}
}

The question is to convert from uppercase to loweracase. I would really appreciate if seomone could help me (java).

Edited by pyTony: fixed formatting

3
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by masijade
0

oops sorry

This is the code:
import java.util.Scanner;
public class Method
{
public static void main(String[] args)
{
Scanner console = new Scanner(System.in);
System.out.print("Enter the character that u want to convert from uppercase to lower case: ");
char name=console.next();
System.out.println("The lowercase character is: "+name);
}
public static char upperCaseToLowerCase(char\ name)
{
return upperCaseToLowerCase('name');
}
}


U have to convert this from uppercase to lowercase. I am sorry. I pasted the wrong code.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.