This is for school .
I am just trying to create a program to count the charcters in the string you enter. What is wrong? Please keep it n00b level.
They want it done this way so please dont ask why am I not using swing this that and the other. Thanx
import java.io.*;
import java.util.*;
public class CharCounter
{
public static void main(String[] args)
{
String str1;
int length() = str1;
System.out.print("Enter a String: ");
str1 = dataIn.readLine();
if(str1.length() <= 0)
{
System.out.print("No Text entered: ");
}
else
{
do
{
System.out.print(length());
}
}
}