Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Java
  4. find out output

find out output

Scheduled Pinned Locked Moved Java
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 9362134
    wrote on last edited by
    #1

    public static count(int num) { if(num<=0) { system.out.println() } }

    jasmin

    A P J L G 5 Replies Last reply
    0
    • U User 9362134

      public static count(int num) { if(num<=0) { system.out.println() } }

      jasmin

      A Offline
      A Offline
      Andrei Straut
      wrote on last edited by
      #2

      This has already been posted in Q&A (and received negatives there too), not to mention the lack of...well...anything

      Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.

      1 Reply Last reply
      0
      • U User 9362134

        public static count(int num) { if(num<=0) { system.out.println() } }

        jasmin

        P Offline
        P Offline
        pasztorpisti
        wrote on last edited by
        #3

        Maybe a compile error because of a missing function return value and trailing ';' at the end of the statement???

        1 Reply Last reply
        0
        • U User 9362134

          public static count(int num) { if(num<=0) { system.out.println() } }

          jasmin

          J Offline
          J Offline
          Joan M
          wrote on last edited by
          #4

          Reposting + cross-posting and inexistent question, only a small code dump without sense... :thumbsdown:

          [www.tamautomation.com] Robots, CNC and PLC machines for grinding and polishing.

          https://www.robotecnik.com freelance robots, PLC and CNC programmer.

          1 Reply Last reply
          0
          • U User 9362134

            public static count(int num) { if(num<=0) { system.out.println() } }

            jasmin

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            You really need to spend some (or rather a lot of) time here[^].

            One of these days I'm going to think of a really clever signature.

            1 Reply Last reply
            0
            • U User 9362134

              public static count(int num) { if(num<=0) { system.out.println() } }

              jasmin

              G Offline
              G Offline
              Gowtham Gutha
              wrote on last edited by
              #6

              A new line wil be be printed in the output if the value in num is negative or equals to 0.

              Gowtham Gutha (Java-Demos.Blogspot.Com)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups