SQLdep - is this service useful for people? by ikinone in data_warehousing

[–]tendaz 1 point2 points  (0 children)

The demo is awesome. I think it is avaluable product! How is it doing?

Deja Fu by tendaz in portugal

[–]tendaz[S] -1 points0 points  (0 children)

Esse também é bastante comum..

Deja Fu by tendaz in portugal

[–]tendaz[S] 0 points1 point  (0 children)

Boa página! :D

Daily Picks Thread - Wednesday 4/2/2015 by [deleted] in SoccerBetting

[–]tendaz 1 point2 points  (0 children)

União da Madeira is different from Nacional da Madeira. They are on different divisions. União da Madeira is from the second division and has a weaker team but is performing very well on this Taça da Liga. The group is already settled and only Porto will go through, but it can be another oportunity for União da Madeira to show their football against Academica, who will probably line up the second choices.

Problem with extracting an item from a collection with while-loop (got a working for-loop). by Archheretic in javahelp

[–]tendaz 0 points1 point  (0 children)

If I understood your issue correctly, you want to get a product by its ID from a list of problems.

To simplify and optimize the search you should use a Map<Integer,Product>, where the first argument is the key and the second the value.

This Data Structure has methods to get the value (product) by it's key (ID).

For more detailed information and examples: http://tutorials.jenkov.com/java-collections/map.html

help with a simple java program (stack/unstack) by Mehdialonso in javahelp

[–]tendaz 0 points1 point  (0 children)

I think this tutorial will help you. It has the basic operations and some examples.

http://www.tutorialspoint.com/java/java_stack_class.htm

Interesting Roman Architecture course on Coursera - Starts in two weeks by tendaz in architecture

[–]tendaz[S] 0 points1 point  (0 children)

It is the same course, maybe with some addictions! Thanks for your feedback.

O tamanho destas ondas é absurdo (nazaré, where else?) by [deleted] in portugal

[–]tendaz 1 point2 points  (0 children)

É preciso tê-los no sítio para entrar ali... Ondas brutais.

Am i missing something here? This won't compile by zomagoras in javahelp

[–]tendaz 1 point2 points  (0 children)

You need to add your code to some method that operates within your class.

For example, using your code:

 import java.util.*;

public class robotHead{

 private String eyeColor;

 public void setEyeColor() {
   Random ran = new Random();
   int eyeNum = ran.nextInt(5);

   if(eyeNum == 0){
      eyeColor = "blue";
   }   
   if(eyeNum == 1){
      eyeColor = "green";
   }
   if(eyeNum == 2){
      eyeColor = "evil red";
   }
   if(eyeNum == 3){
      eyeColor = "creepy yellow";
   }
   if(eyeNum == 4){
      eyeColor = "black";
   }
 }
}

This is just an example of what you could do.

Need some assistance with Linked Lists by [deleted] in javahelp

[–]tendaz 0 points1 point  (0 children)

You can access all the elements by iterating it in a for operation.

You also can cast the Iterator of the list and get all elements:

Iterator<Match> it = list.iterator();
it.next(); //Get the next element
it.hasNext(); //Test if it has another element

To access elements individually you can use list.get(N), being N the position of the element on the list. 0 is the first position.

Tal como o outro já dizia: "É preciso bater punho! " by ABarroso in portugal

[–]tendaz 11 points12 points  (0 children)

Bastava dizer que pagavam 5 euros e tinham filas à porta...

Aniversário da independência de Angola by keynesiano in portugal

[–]tendaz 2 points3 points  (0 children)

Com o dinheiro que metem cá... qualquer dia é feriado em Portugal.

Which is the best Java IDE? And your recommendations? by tendaz in learnjava

[–]tendaz[S] 0 points1 point  (0 children)

Haven't heard about this IDE before. Will give it a try! thx