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).

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.

Once again the String method toLowerCase() Look it up.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.