You are viewing a single comment's thread. Return to all comments →
for (String retval: C.split("[B]*")){ //System.out.print(retval); if(retval.equals("")) { count++; } } for (String retval: C.split("[R]*")){ //System.out.print(retval); if(retval.equals("")) { count++; } } if((count-1)!=0) System.out.println(count-1); else System.out.println(1); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Paint The Tiles
You are viewing a single comment's thread. Return to all comments →