← 返回首页
GitHub - dbc2201/JavaCodingProblem1 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

dbc2201/JavaCodingProblem1

Go to file
Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
View all files

Repository files navigation

More items

Java Coding Problems

Chapter 1: Strings, Numbers, and Math

Problem Statement : Counting Duplicate Characters

Write a program that counts duplicate characters from a given String.

Sample Input 1

"aabcc"

Sample Output 1

{a=2, b=1, c=2}

Question taken from the book "Java Coding Problems" by Anghel Leonard.
Formatted and uploaded by dbc2201

Suggested Reading:

  1. HashMap (Java SE 18 & JDK 18)
  2. Managing the Content of a Map (dev.java)

Packages

 
 
 

Contributors

Languages

Footer

© 2026 GitHub, Inc.