silven87's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
4 (0.01 per day)
Joined:
06-August 12
Profile Views:
56
Last Active:
User is offline Sep 19 2013 10:50 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   silven87 has not set their status

Posts I've Made

  1. In Topic: how to change lowercase to uppercase

    Posted 15 Aug 2012

    Thank you, I changed the program a little to this

    char aChar, bChar;
    System.out.println("enter a char");
    aChar = (char)System.in.read();
    System.in.read(); System.in.read(); //absorbs enter key.
    System.out.println(aChar);
    if(Character.isLowerCase(aChar));
    	bChar = Character.toUpperCase(aChar);
    System.out.println(bChar);
    
    


    It now works perfectly.
  2. In Topic: stopping the loop

    Posted 6 Aug 2012

    View Postmostyfriedman, on 06 August 2012 - 07:24 PM, said:

    why do you do this?
    System.in.read(); System.in.read();
    
    


    Anyway I believe you should change your ORs into ANDs


    Changing the ORs into ANDs did work thank you.

    System.in.read(); System.in.read(); //absorbs the enter key.
    
    


    is used so the when the loop repeats it does not leave a blank line, instead it automatically repeats the prompts.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

silven87 hasn't added any friends yet.

Comments

silven87 has no profile comments yet. Why not say hello?