-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mock 4a help #608
Comments
can have a for loop in forEach! |
can also do forEach() in the stream |
something like the 'sample' answer? |
Can use for loop! |
@calvinseptyanto Issue with that implementation is how to combine them into one line? |
why need one line? |
sample answer? |
Like the answer written by the random guy in the file downloaded |
err no all the answers were super whack haha i just iterated a dummy variable thru N times, and had a .forEach() at the end to run the consumer accept get for said N times |
@shotnothing Oh, my understanding from the paper is, since it's written as 2 0 6 9 5, your output need to be one line But the code above, where you for loop and in each for loop you have consumer.accept(..) would produce 2 |
Hey, its System.out.print not System.out.println. so a loop construct will work too |
@morksen123 Woops, thanks for pointing that out! |
Yeah I mean even with println, you could always just reduce it to a single string and print that once right at the end |
ik I'm supposed to do something like consumer.accept(t) but how do iterate through every number from generate?
Does anyone mind showing their code? thanks
The text was updated successfully, but these errors were encountered: