我写过这样的代码:
public void SetPosition(int lfp, int lhp, int rfp, int rhp)
{
leftFront = lfp;
leftHind = lhp;
rightFront = rfp;
rightHind = rhp;
System.out.print((lfp+1) + "...");
System.out.print((lhp+1) + "...");
System.out.print((rfp+1) + "...");
System.out.println((rhp+1) + "...");
}
现在我想计算我的输出中有多少 (lfp+1)... 请让我知道如何执行此操作...