Re: One for Three?
"NickName" <dadada@rock.com> wrote:
Following an advice on getting started with the very foundametal
elements of java, would one one write some simple and yet elegant code
sample using some core methods from java.lang, java.util and java.io
(optional) and java.text (optional) packages? And if this little thing
is fun for you, I'd appreciate it.
>>
Addition to my OP. Use one sample code to cover three packages of
java.lang (implicit), java.util and java.io. And make it fun, are you
able to?
TIA.
Oliver Wong wrote:
Because of the strange way human psychology works, when you make it
sound like you're "tricking us" into helping you (e.g. by masquerading the
request for help as a challenge or contest), we're less likely to help you,
despite the fact that had you just asked straightforwardly, we would have
been willing to help you for free. Crazy, isn't it? I'll never understand
the human mind...
Good luck with your challenge, though.
- Oliver
/** This is Fun.
*/
public class Fun
{
/** Main method.
* @param args <code>java.lang.String []</code> arguments.
*/
public static void main( String [] args )
{
java.util.Map<String, String> map =
new java.util.HashMap<String, String> ();
map.put( "", "" );
System.out.println( java.text.DateFormat.getDateInstance()
.format(new Date()) +": "+ map );
}
}
- Lew