Re: String/isUpperCase?
From: Roedy Green (roedy_at_seewebsite.com)
Date: 10/31/03
- Next message: os2: "runtime error"
- Previous message: Roedy Green: "Re: newbie: How to know witch operator is an string"
- In reply to: jim: "String/isUpperCase?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 19:15:17 GMT
On Fri, 31 Oct 2003 11:22:26 -0500, "jim" <jblduron@bright.net> wrote
or quoted :
>I'm new to java and could use some help with a program that reads a string
>and counts the Upper Case letters. I tried isUpperCase but it was only doing
>a character not the whole string. Do I need some sort of next command or can
>I change the string to something else? any help would be appreciated.
you could either loop checking each char or more crudely you could use
toUpperCase and compare using equals with the original. It would
probably even work using ==, but that would be living dangerously.
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: os2: "runtime error"
- Previous message: Roedy Green: "Re: newbie: How to know witch operator is an string"
- In reply to: jim: "String/isUpperCase?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|