A program to create a class that contains a method that accepts compass directions and displays the same. You need to ensure that the method must accept any one of the directions: NORTH, SOUTH, EAST, WEST, NORTHEAST, SOUTHEAST, SOUTHWEST or NORTHWEST.
Folks here are eager to be helpful, but they won't just do the assignment for you, nor does anyone just assume you want them to do it for you. Instead, what works well here is if you post the code you have so far, and then ask for help in getting it to do what you want. Usually, people will give you suggestions and examples that will, in the end, let you solve your problem and complete your assignment yourself.
So, give it a try and post your first attempt at writing this program. Then we'll see what we can do.
"Il y a peu de choses qui me soient impossibles..."
This sounds like a task where an enum type would be exactly what you would want to use. Please give it a go and if you get stuck, show us how far you've got and we'll explain things.