<p>public String getTeaser(){
Date now=new Date();
StringBuilder bil=new StringBuilder();
bil.append(this.getHead());
bil.append(’
');
bil.append((now.getTime()-this.getDate().getTime())/(1000*60) % 60);
bil.append(this.url);
bil.append(this.views);
return bil.toString();</p>
<pre><code>}
</code></pre>
<p>the messg, for us</p>
<p>List<app> nova =new ArrayList<>();
public List<app> randomChoice(){
List<app> a=this.lista;
while(true){
Collections.shuffle(a);
nova.addAll(a.subList(0, 2));</app></app></app></p>
<pre><code> for(int i=0;i<nova.size();i++){
if(shuffle.contains(nova.get(i))) continue;
else shuffle.add(nova.get(i));
}
nova.clear();
if(this.shuffle.size()==a.size()) break;
}
return nova;
}
</code></pre>