| | |
Array list or character ? in java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2009
Posts: 3
Reputation:
Solved Threads: 0
I want to create a a program in which i enter a word and the program counts the number of alphabets used in the word and display as output !!
I know its simple but i am just a beginner and my teacher wants to submit this as assignment
this is the question
2. A man wanted to enter a club but did not know the password that was required. He waited by the door and listend, a club member knocked on the door, the door man said "twelve" member replied "6" and was let in. Second member came to the door, doorman said "six" the member replied "3" and was let in. now the man throught that he had heard enough and walked up to the door, doorman said "eight" the man replied "4" but he was not let in. What should he say? so that he gets in.
I know its simple but i am just a beginner and my teacher wants to submit this as assignment
this is the question
2. A man wanted to enter a club but did not know the password that was required. He waited by the door and listend, a club member knocked on the door, the door man said "twelve" member replied "6" and was let in. Second member came to the door, doorman said "six" the member replied "3" and was let in. now the man throught that he had heard enough and walked up to the door, doorman said "eight" the man replied "4" but he was not let in. What should he say? so that he gets in.
Last edited by ayaz.ali; Sep 18th, 2009 at 4:28 am. Reason: question added
•
•
•
•
the program counts the number of alphabets used in the word and display as output !!
Hava a look at the String class and at the trails.
•
•
•
•
2. A man wanted to enter a club but did not know the password that was required. He waited by the door and listend, a club member knocked on the door, the door man said "twelve" member replied "6" and was let in. Second member came to the door, doorman said "six" the member replied "3" and was let in. now the man throught that he had heard enough and walked up to the door, doorman said "eight" the man replied "4" but he was not let in. What should he say? so that he gets in.
he should say 5, by the way.
1) Prove that the area of a circle is pi*r^2, where "r" is the radius of the circle. 2) Problem 2[b]solved by : jonsca
![]() |
Similar Threads
- Making MUD. Should map be 4D Array or Linked List? (Java)
- Passing Array element to a list (Java)
- Uses of Array List (Java)
- Open In New Window Php (PHP)
- How to store array? (Java)
- List View (like in VB) in Java? (Java)
- text processing? (Java)
- Inserting array into cookie (PHP)
- Array help (Java)
Other Threads in the Java Forum
- Previous Thread: Urgent! I need to teach someone 'special'
- Next Thread: JText
| Thread Tools | Search this Thread |
Tag cloud for array, character, java
.net add ajax apple applet applications array automation awt binary c# c++ char character class classes click code component convert coordinates count data database design development draw dynamic eclipse error errors event file firefox fractal frequency function game google graph gui html image index input int integer java javafx javascript jetbrains jmf jsp julia linux list listbox loop loops method microsoft myaggfun mysql netbeans newbie number perl php pointer problem program programming project property python random recursion reference scanner search security set single socket software sort sql string sun swing test threads time tree user vb virtualization web websphere windows







