Java input output example

This is a little example in Java how to print an info text and then read a number from the terminal, calculate the square and then print the result:

To compile your test.java file run this in your terminal:

now we have the file test, to execute run this:

This is the output:

The same Program in C# is here : C# input output example

6 thoughts on “Java input output example”

  1. Excellent items from you, man. I have have in mind
    your stuff prior to and you’re just too great. I actually like what you’ve received right
    here, really like what you’re saying and the way
    in which in which you say it. You are making it entertaining and
    you continue to take care of to keep it sensible.

    I cant wait to learn far more from you. That is actually
    a wonderful website.

    View Comment
  2. Hello there, I found your website by way of Google while looking for a related subject, your
    site got here up, it appears good. I’ve bookmarked it
    in my google bookmarks.
    Hi there, simply changed into alert to your blog through Google, and found
    that it is really informative. I am going to watch out for
    brussels. I’ll be grateful in case you continue this in future.
    Lots of other people will be benefited out of your writing.
    Cheers!

    View Comment
  3. Hello, i think that i saw you visited my web site so i
    came to return the desire?.I am trying to to find issues to improve
    my web site!I suppose its good enough to make use of a
    few of your ideas!!

    View Comment
  4. I’ll right away seize your rss feed as I can not find your e-mail subscription hyperlink or e-newsletter service.
    Do you have any? Kindly let me recognise so that
    I could subscribe. Thanks.

    View Comment
  5. Great goods on your part, man. I have got take into account your stuff ahead of and you’re simply too wonderful.
    I actually like what you might have acquired on this site, certainly like what you will be saying and the
    way in which where you happen to be saying it.
    You are making it enjoyable and you continue to care for to keep it smart.
    I cant wait to learn far more by you. This is certainly
    actually a wonderful website.

    View Comment

Leave a Reply

Your email address will not be published.

nine + thirteen =