Member Avatar

I need to make some KML code that is basically a coloured track. So far I have worked out that it either has to be lots of small lines or placemarks. However usually with this there is no way to use the time bar. Is there a way to be able to have lots of small lines/placemarks that are affected by the timebar. Thank you.

Member Avatar
0
14
Member Avatar

I am on euler project 4, the largest palendrome product of 2 3digit numbers. Here is the program, however it doesn't print a value. please help. package euler; public class problem004 { String reversed; public static void main(String[] args) { int product =0; String stringproduct; //cycles through all the numbers for(int i=999;i>=100;){ for(int n=999;n>=100;){ product = n*i; stringproduct = product +""; new problem004().reverse(stringproduct); //if the string is a palendrome if(stringproduct == new problem004().reversed){ System.out.println("answer is"+stringproduct); } n--; } i--; } } //reverses the string order void reverse(String rev){ //""turns it to a string reversed = new StringBuffer(rev).reverse() + ""; } …

Member Avatar
0
29
Member Avatar

for(long i = 1;i< 600851475143; i++ ){ The rest of the code works however I am testing against this number and I get an error: Out of range of int. How can I create boolean tests against a larger variable. Thank you.

Member Avatar
0
10

The End.