当前位置: 代码迷 >> Java相关 >> [求助],老大帮看一下吧!!!
  详细解决方案

[求助],老大帮看一下吧!!!

热度:373   发布时间:2004-08-12 01:25:00.0
[求助],老大帮看一下吧!!!

<% if(numGuess.getSuccess())%> <% { %> Congratulation! You got it And after just<%=numGuess.getNumGuesses()%>tries.<p> <% numGuess.setInit(); %> Care to <a href="numGuess.jsp">try again</a>? <% } %> <% else if(numGuess.getNumGuesses()==0)%> <% { %> Welcome to the Number Guess game.<p> I'm thinking of a number between 1 and 100.<p> <form method="get"> What's your guess?><input type="text" name="guess"> <input type="submit" value="Submit"> </form> <% }else{ %> Good guess,but nope. Try<b><%=numGuess.getHint()%></b> You have made<%=numGuess.getNumGuesses()%>guesses.<p> I'm thinking of a number between 1 and 100.<p> <form method=get> What's your guess?<input type=text name=guess> <input type=submit value="Submit"> </form> <% } %>

怎么总是报错呀

[javac] C:\Tomcat 4.1\work\Standalone\localhost\test\numGuess_jsp.java:81: 'else' without 'if' [javac] else if(numGuess.getNumGuesses()==0) [javac] ^ [javac] C:\Tomcat 4.1\work\Standalone\localhost\test\numGuess_jsp.java:91: 'else' without 'if' [javac] }else{ [javac] ^ [javac] 2 errors

搜索更多相关的解决方案: 老大  

----------------解决方案--------------------------------------------------------
重复发帖,所以有点不爽,不想帮你哎~
----------------解决方案--------------------------------------------------------
  相关解决方案