Create a java program that puts numbers as argument in the command prompt and display total positive and total negative numbers. Example run: Z:/> java CountNumbers 23 20 30 80 522 -9 -10 87 -78 Total Positive: 7 Total Negative: 3

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
Create a java program that puts numbers as
argument in the command prompt and display
total positive and total negative numbers.
Example run:
Z:/> java CountNumbers 23 20 30 80 522 -9
-10 87 -78
Total Positive: 7
Total Negative: 3
Z:/> java CountNumbers 23 -20 30
Total Positive: 2
Total Negative: 1
Transcribed Image Text:Create a java program that puts numbers as argument in the command prompt and display total positive and total negative numbers. Example run: Z:/> java CountNumbers 23 20 30 80 522 -9 -10 87 -78 Total Positive: 7 Total Negative: 3 Z:/> java CountNumbers 23 -20 30 Total Positive: 2 Total Negative: 1
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT