Re: One for Three?
"NickName" <dadada@rock.com> wrote in message
news:1167242316.146361.87580@48g2000cwx.googlegroups.com...
Mike Schilling wrote:
"NickName" <dadada@rock.com> wrote in message
news:1167235644.417216.228750@42g2000cwt.googlegroups.com...
[...]
No, a *method* named main, not a *class* named main. E.g.
public class Hello
{
public static void main(String[] args)
{
System.out.println("Hello, world");
}
}
Got it. Compiled and it runs. Many thanks. Now, a related question,
I attempted to use
the coordinates of 38?53'50"N 77?0'22"W for Union Station (DC) and
since the program does not prompt me for param input, I manually edited
the source code for the map.put method to
read as
map.put( "38?53'50\"N", "77?0'22\"W" );
// thought one backslash character is to escape special character like
quote
The code runs just fine. The debug console prints the following:
Dec 27, 2006: {38?53'50"N=77?0'22"W}
However, that seems meaningless unless I did not use it correctly. I
was expecting some sort of map albeit simple.
You DO have a simple map. More specifically, you have a string
representation of a map which has a single point as it's domain
("38?53'50"N") and a single point as it's range ("77?0'22"W"). Perhaps the
confusion arises because you were expecting some sort of geographical map?
"Map" here is in the mathematical sense:
http://en.wikipedia.org/wiki/Map_%28mathematics%29
http://www.purplemath.com/modules/fcns2.htm
- Oliver