Laba6 on java