Create MrWiafe_BasicCode_inJava

I wrote this code in java and it works fine. it is just the basic algorithm we wrote yesterday.