Final Exam

<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>

<p>What are you supposed to do with the code? figure out the output or something? Also, if this is your final exam problem I guarantee people won’t really help with this.</p>

<p>Hooooray for posts with no questions!..</p>

<p>alright OP, thanks for the udpate</p>

<p>Is this supposed to be an informative post? Or was there a question? Haha</p>

<p>I dont have a compiler to run it…and also it looks like the guy is foreign guy. Does he speak english?..</p>

<p>I have a compiler but he didn’t provide all the methods.</p>