convert java program c language

Convert from Java to C++   lanauage