enough java.  c++ recode