473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Newbie needs HELP:)

So I'm fairly new to Java Programming, a few weeks into the class and I have a homework assignment that requires me to count the amount of capitals, lower cases, and spaces in sentence the user puts in. I was wondering how to make the program count the amount of capitals and lower cases using the ascii codes. Any help would be appreciated:)
Oct 18 '06 #1
1 1105
r035198x
13,262 8TB
So I'm fairly new to Java Programming, a few weeks into the class and I have a homework assignment that requires me to count the amount of capitals, lower cases, and spaces in sentence the user puts in. I was wondering how to make the program count the amount of capitals and lower cases using the ascii codes. Any help would be appreciated:)
Hold on now. No need to play around with the acsii codes yet. Have a look at these classes and your assignment is done.
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Character.html
Oct 19 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: igmox | last post by:
hi, i am a complete newbie and got stuck. my question is about costumers and prices Customer_ID CustomerName CustomerType 1 John 2 2 Joe ...
0
by: Statsstudent2006 | last post by:
Hello! I am a newbie, and have received my first VBA assignment. I have to write a subroutine that generates the Fibonacci sequence of numbers (the first n numbers, where n is an integer number...
1
by: bzbee | last post by:
Hello I ran across this site by accident & hope someone can help me. I know this sounds stupid .But I need to know how to type SCANREG in at Dos prompt. I know nothing about Dos prompt. I...
23
by: Gunnerman6875 | last post by:
Hi everyone, Well I'm a newbie to Access and your site so forgive me if my terminology is a little out. I'm currently trying to create what i thought would be a simple database for work. I'm in...
6
by: diediealldie | last post by:
I'm really really newbie, almost no knowledge about python. The problem I have is : example) a = for n in a: if a < 4: del a if I code like this, an error occurs, because...
3
Metallicat
by: Metallicat | last post by:
I have been posed and attempted to answer several questions but I do not seem to be getting anywhere. I have emailed my tutor a week ago and he has not responded, If anyone can take a look and help...
3
Eclipse
by: Eclipse | last post by:
G'day All I am just starting to learn programming and need a bit of help with this one. I want to be able to create a list containing Path, Directory, Filename and write them out to a csv file...
4
bencoding
by: bencoding | last post by:
Hello, I've been learning C# for a few months now and still learning, I come from a PHP background where declaring the variable types is not involved. I would like to do this simple math...
2
by: Luis Speciale | last post by:
Hi I'm trying to build mod_pyton on Leopard 10.5.4 on a Mac G5 with this cvs version http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk with this Python python Python 2.5.2...
2
by: shawnwperkins | last post by:
Hi Folks, I'm new to Javascript and just need a little help. I downloaded a script from Dynamic Drive's Web site and I'm trying to make a simple modification and could use some help. :) The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.