Well just type the following line
java Countdown 3
You should see the following output :
3 2 1
Assuming you have compiled the source file (Countdown.java) to a class file
(Countdown.class) using the javac compiler :-).
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: Marshall, Katyann <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 9:38 PM
Subject: new to java desperately need help


> I'm trying some simple java code I'm getting directly from a book, the
code
> looks as follows, it's running fine how do I see the output, a co worker
> told me that I'm using inner class in the code but I'm not too sure what
he
> meant, can some on look at this code and tell me what I'm missing to see
the
> output.
> here is the code
>
>  class Countdown {
>
>   public static void main(String args[]) {
>   int i = Integer.valueOf(args[0]).intValue();
>   for(int j= i; j>0; j--)
>   System.out.print(j + " ");
>   System.out.print("\u0007");
>   }
> }
>
>
> thanks
> Katyann
>
>
>
> -----Original Message-----
> From: Sainz de Murieta [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 11:34 AM
> To: [EMAIL PROTECTED]
> Subject:
>
>
> A tomcat specific question:
>
> Im using Tomcat 3.2 on Windows 2000. It's working fine when I start and
stop
> it
> manually (I mean, executing the scripts in /bin). But it doesn't work if I
> install it as a service. All my paths on the wrapper.properties seem to be
> ok.
> I install it as server; just after starting it, it stops again writing the
> file
> jvm.stderr with the following content:
> ----
> java.lang.NoClassDefFoundError: de
> Exception in thread "main"
> ----
>
> Does anybody know what my problem could be?
>
> Cheers,
> Iņaki.
>
> ---------------------------------------------
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to