i`m learning java programming language and write any algorithms