This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<Integer> generate(int series) { | |
return Stream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]}) | |
.limit(series) | |
.map(n -> n[0]) | |
.collect(Collectors.toList()); | |
} | |
public static void main(String[] args) { | |
generate(30).forEach(n -> { | |
List<String> collected = Stream.generate(() -> UUID.randomUUID().toString()).limit(n).collect(Collectors.toList()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Methode 1 | |
<p:dataTable var="entry" value="#{hashMap.entrySet().toArray()}"> | |
<p:column headerText="key"> | |
<h:outputText value="${entry.key}" /> | |
</p:column> | |
<p:column headerText="value id"> | |
<h:outputText value="${entry.value.id}" /> | |
</p:column> | |
</p:dataTable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> | |
</script> | |
<script> | |
$(document).ready(function(){ | |
$("button").click(function(){ | |
$("p").toggle(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http - equiv = "Content-Type" content = "text/html; charset=utf-8" > | |
<title>Highstock Example </title> | |
<script type = "text/javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" > </script> | |
<script type = "text/javascript" > | |
$(function () { | |
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function (data) { | |
$('#container').highcharts('StockChart', { |