• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

why don't you save num1 in the array?

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, good day, I'm trying to make a program in pseudocode so that it saves a number greater than 100 in an array, but I do a "debuger" (I think it's called that in English, correct me if I'm wrong. That is, I put the variables and I am executing them one line at a time and I am seeing how the program behaves).
Here is the code, thanks.


postscript: dimension here is an array. and the word read in this pseudo-interpreter is like "host".
 
Marshal
Posts: 8954
646
Mac OS X Spring VI Editor BSD Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bruno Valdeolmillos wrote:Hello, good day


Hello. We'll know later.

Do you have any questions? I saw some question the topic's title, but I couldn't understand it.
 
Marshal
Posts: 79933
396
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why did you say read twice? Lines 7 and 11.
 
Bruno Valdeolmillos
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Why did you say read twice? Lines 7 and 11.


read is how to use java.util.scanner
 
Bruno Valdeolmillos
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Why did you say read twice? Lines 7 and 11.



the instruction is to make a program with 4 numbers and that shows with an arrangement the numbers that are larger than 100. can i explain better now? thank you
 
Liutauras Vilda
Marshal
Posts: 8954
646
Mac OS X Spring VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bruno Valdeolmillos wrote:

Campbell Ritchie wrote:Why did you say read twice? Lines 7 and 11.


READ IS HOW TO USE JAVA.UTIL.SCANNER


But what you have as num1 at line 11 you already read at line 7. This is what Campbell said. And now you just need to store it, but not read again.
 
Campbell Ritchie
Marshal
Posts: 79933
396
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are incorrect saying that read means to use a Scanner; you are writing pseudocode and you can ignore that sort of implementation detail.
 
eat bricks! HA! And here's another one! And a tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic