我真的试图找出我没有关闭某些代码的地方,但这对我来说似乎都是正确的。我做了什么?我仔细检查了所有代码,希望有人能为我解决这个问题!
BigInteger[] numbers = {
new BigInteger("20849603980134001723930671666823555245252804609722"),
.
.
.
new BigInteger("53503534226472524250874054075591789781264330331690")
};
BigInteger sum = new BigInteger("0");
for(int i = 0; i < numbers.length; i++) {
sum.add(numbers[i]);
System.out.println(numbers[i]);
System.out.println(sum);
}
System.out.println(sum);
答案 0 :(得分:1)
错过<% end %>
:
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<%= link_to "Pinteresting", root_path, class: "navbar-brand" %>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right">
<li><%= link_to "Home", root_path %></li>
<li><%= link_to "About", about_path %></li>
<% if user_signed_in? %>
<li><%= link_to "Account Settings", edit_user_registration_path %></li>
<li><%= link_to "Log out", destroy_user_session_path, method: :delete %></li>
<% else %>
<li><%= link_to "Sign in", new_user_session_path %></li>
<% end %>
</ul>
</div>
</div><!-- /.navbar-collapse -->
</nav>