Function<Integer, Function<Integer, Function<Integer, Integer>>> calculation
= x -> y -> z -> x + y + z;
public class EnumTest {
Day day;
public EnumTest(Day day) {
this.day = day;
}
public void tellItLikeItIs() {
switch (day) {
case MONDAY:
System.out.println("Mondays are bad.");
break;
case FRIDAY:
System.out.println("Fridays are better.");
break;
case SATURDAY: case SUNDAY:
System.out.println("Weekends are best.");
break;
default:
System.out.println("Midweek days are so-so.");
break;
}
}
public static void main(String[] args) {
EnumTest firstDay = new EnumTest(Day.MONDAY);
firstDay.tellItLikeItIs();
EnumTest thirdDay = new EnumTest(Day.WEDNESDAY);
thirdDay.tellItLikeItIs();
EnumTest fifthDay = new EnumTest(Day.FRIDAY);
fifthDay.tellItLikeItIs();
EnumTest sixthDay = new EnumTest(Day.SATURDAY);
sixthDay.tellItLikeItIs();
EnumTest seventhDay = new EnumTest(Day.SUNDAY);
seventhDay.tellItLikeItIs();
}
}
<c:if test="${contract.getIsBlocked()!=true}">
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">Tariff list</div>
<div class="panel-body">
${tempId.clear()}
<c:forEach var="tariff" items="${allTariffs}" varStatus="loop">
<c:set var="t">${tempId.add(tariff.tariffId)}</c:set>
<c:if test="${contract.tariff==tariff}">
<h3>
<div class="radio">
<label>
<input type="radio" name="optionsRadios${loopOne.index}"
id="optionsRadios${loopOne.index}"
${loop.index} value="option${loop.index}" checked disabled>
<b>${tariff.title}</b>
</label>
</div>
</h3>
</c:if>
<c:if test="${contract.tariff!=tariff}">
<h3>
<div class="radio">
<label>
<input type="radio" name="optionsRadios${loopOne.index}"
id="optionsRadios${loopOne.index}"
${loop.index} value="option${loop.index}">
<b>${tariff.title}</b>
</label>
</div>
</h3>
</c:if>
</c:forEach>
<property name="hibernate.c3p0.timeout">180000</property>
<property name="hibernate.c3p0.timeout">0</property>
sudo update-ca-certificates -f
Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
org.debian.security.InvalidKeystorePasswordException: Cannot open Java keystore. Is the password correct?
at org.debian.security.KeyStoreHandler.load(KeyStoreHandler.java:68)
at org.debian.security.KeyStoreHandler.<init>(KeyStoreHandler.java:52)
at org.debian.security.UpdateCertificates.<init>(UpdateCertificates.java:65)
at org.debian.security.UpdateCertificates.main(UpdateCertificates.java:51)
Caused by: java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:650)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
at java.security.KeyStore.load(KeyStore.java:1226)
at org.debian.security.KeyStoreHandler.load(KeyStoreHandler.java:66)
... 3 more
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.
sudo dpkg --purge --force-depends ca-certificates-java
sudo apt-get install ca-certificates-java