Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   How can I make program in java that convert capital letter to small letter (https://www.askmehelpdesk.com/showthread.php?t=770201)

  • Oct 6, 2013, 10:44 AM
    sallamsoso
    How can I make program in java that convert capital letter to small letter
    How can I make program in java that convert capital letter to small letter
  • Oct 6, 2013, 01:43 PM
    Celine91
    public static void average( char [] letter ) {

    for (int I = 0; I < letter.length; I++) {
    letter[i] = Character.toLowerCase(letter);
    }

    System.out.println(Arrays.toString(letter));
    }
  • Jan 14, 2014, 10:10 PM
    shanaka1992
    import java.util.Scanner;






    public class Convert {
    static String s;
    public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    System.out.print("Enter Text Here : ");
    s=scanner.nextLine();


    System.out.println("Your text in Lower Case : "+s.toLowerCase());

    }


    }

  • All times are GMT -7. The time now is 09:53 PM.