Skip to content

Conversation

@LimGeon
Copy link

@LimGeon LimGeon commented Jul 26, 2020

No description provided.

@LimGeon
Copy link
Author

LimGeon commented Jul 26, 2020

image

public static void main(String args[]) {
Scanner sc = new Scanner(System.in);

Map<Integer, String> pokeHash = new HashMap<>(); //���ϸ� �̸��� �ε����� ���� HashMap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HashMap<Integer, String> map = new HashMap<>();
으로 만들어 사용하면 map을 굳이 import 할 필요가 없어집니당

return key;
}
}
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key값이 int형이니깐 return할때도 null이 아니라 -1같은 값으로 예외처리 해주는게 더 좋을 것 같음!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants