Skip to content

The project template for the BIM207 course - Fall 2024

License

Notifications You must be signed in to change notification settings

edingokay/ProjectFall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The template repository for the BIM207 course's Project: 2023-2024 Fall

The project template for the BIM207 course - Fall 2024

  • BIM207 Project has 2 Parts, 50 points each.
  • Part-I: Writing a failing test case to demonstrate a bug.
  • Part-II: Implement a generic method both using wildcards and type parameters.

Part-I

  • For a certain user input(s) the function/method infiniteLoop enters an infinite loop.
  • This is an intentional bug, do not fix it.
  • Instead, write a failing junit test case to demonstrate the bug.

Part-II

  • Please implement an increment-by-one method that increments the frequency of a given key by one in a count/frequency map.
  • There's often a case when we can declare a generic method using either wildcards or type parameters.
  • Implement the generic method in both possible two ways (i.e. using wildcards <?> and type parameters <E>).
  • So that, pre-written test cases all pass. Do not modify the test cases.
  • @param map the frequency map, keys can be any Enum (built-in or custom), values are Integer.
  • @param key any Enum type should work. Hint: How do I decrypt "Enum<E extends Enum>"?

About

The project template for the BIM207 course - Fall 2024

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%