I hope this post will help you because even on google sites I did not find tutorial about this yet.
Lets Rock !!
1: var markerArr = [
2: ['Bondi Beach', -33.890542, 151.274856],
3: ['Coogee Beach', -33.923036, 151.259052],
4: ['Cronulla Beach', -34.028249, 151.157507],
5: ['Manly Beach', -33.80010128657071, 151.28747820854187],
6: ['Maroubra...
Saturday, May 10, 2014
Wednesday, May 7, 2014
Java Converting Array to List
Converting Array to List using Arrays.asList utility.
String cars[] = {"BMW", "Jeep", "Mitsubishi"};
List carList = Arrays.asList(cars); //Converting
...
Monday, May 5, 2014
Detecting OS in Java
There is just simple code to get operating system on your java Application.
String os = System.getProperty("os.name");
System.out.print("my OS : "+os);
if your OS is windows 8, the output will be : my OS Windows...
Thursday, May 1, 2014
Java Random
Simple playing random integer with Java :
int randomInt ;
Random randomGenerator = new java.util.Random();
randomInt = randomGenerator.nextInt(100); // integer random range is between 0 until 100
System.out.println(randomInt );
You can also play with other data types :
System.out.println( randomGenerator.nextBoolean());
System.out.println( randomGenerator.nextDouble());
System.out.println(...