Java Question

by G01
Tags: java
G01 is offline
Feb13-06, 08:57 PM
HW Helper
G01's Avatar
P: 2,688
I need java to read a string and count how many characters are in it. I know theres some class that can do this. What is it?
Phys.Org News Partner Science news on
Internet co-creator Cerf debunks 'myth' that US runs it
Astronomical forensics uncover planetary disks in Hubble archive
Solar-powered two-seat Sunseeker airplane has progress report
chroot is offline
Feb13-06, 09:01 PM
Sci Advisor
PF Gold
chroot's Avatar
P: 10,424
"Read a string?" From standard input?

Use e.g.

String s =;
int n = s.length();

- Warren
G01 is offline
Feb14-06, 10:15 PM
HW Helper
G01's Avatar
P: 2,688
Thanks alot.

Register to reply

Related Discussions
JLabel java question. Engineering, Comp Sci, & Technology Homework 1
a question about binary tree(java) Programming & Computer Science 2
question about this java program Programming & Computer Science 6
Java Question Programming & Computer Science 2
Java question Programming & Computer Science 5