804-986-2985 greg@agilewriters.com
Comma Separated Values

Comma Separated Values

This post was originally published by Greg Smith hereCreating a list of objects that are separated by commas is pretty common. Here’s one way: List<String> items = Arrays.asList("one", "two", "three"); String result = ""; for(String item :...
Simple For Loops

Simple For Loops

This post was originally published by Greg Smith hereLooping is one of the fundamental tools of programming. The following example shows how to count from 0 to 99. for(int i=0; i<100; i++) { System.out.println(i); } 0 1 2 3 4 … Equally important is the...