wants help in algo learning
Link |
by
![]() |
hi, I need help in learning algorithm. just now I need to know about class, data field, method and how to make a class diagram. and about the use in practice. furthermore I want to use this thread to be used again and again in learning. edit: I see that several places in the net that offers some kind of gadget coding that seems use html that open and ended by xml. could anyone explain about this to me? edit: can anyone found what's wrong with this: public class test { public static void main(String[]args) { //System.out.println( (int)(Math.pow(65,11)%143) ); double d = 1/11; String kata = "test."; for(int i =0; i< kata.length();i++) { System.out.println( (int)(Math.pow((int)(kata.charAt(i)),11)%143) ); } } } ![]() |
Re: wants help in algo learning
|
I don't know what this code is supposed to do. However, d = 1/11; seems wrong. 1 and 11 are integers so d will be equal to 0 because of rounding down. You should use d = 1.0/11.0; instead. |
Re: wants help in algo learning
Link |
by
![]() |
the double d isn't used anyway... the problem is that it changed t and . into 2 I now thinking the key is the problem... anyway, thanks for helping ![]() |