When runnig you must supply an initial value for i, and it must be greater
than zero to output anything. Per example

java Countingdown 10

On Mon, 23 Apr 2001, Marshall, Katyann wrote:


> 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
>

T+

--------------------------------------------------------------------------
      Rodrigo de Oliveira Lopes        "If we knew what it was
  Mestrando em Ciencia da Computacao    we were doing,
    Universidade Federal do Ceara       it would not be called research,
         [EMAIL PROTECTED]                 would it?"
         [EMAIL PROTECTED]                             Albert Einstein

===========================================================================
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