Simple pass the variable to the function


<%
String arg1 = request.getParameter("myParameter");
int output = B.repeatCount(arg1);
%>


If you have not yet, I'd suggest reading through the...