My codes in JAVA.(Project codes not included)