Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f37a05

Browse files
Update CountChar.java
1 parent 5d3b7e1 commit 3f37a05

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

‎String/CountChar.java‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
import java.util.Scanner;
2-
2+
/*
3+
Q= Occurence of each letter without using inbuilt function.
4+
i/p - java is easy
5+
o/p - j - 1
6+
a - 3
7+
v - 1
8+
- 2
9+
i - 1
10+
s - 2
11+
e - 1
12+
y - 1
13+
*/
314
public class CountChar{
415
public static void main(String... arg){
516
Scanner sc = new Scanner(System.in);
@@ -25,6 +36,6 @@ public static void main(String... arg){
2536
else
2637
count=0;
2738
}
28-
}
39+
}
2940
}
3041

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /