Win a copy of Java Challengers this week in the Java in General forum!

onygen nari

Greenhorn
+ Follow
since Apr 24, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
8
Given in last 30 days
8
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by onygen nari

@Carey Brown a month ago I had entry test for ,Free advanced level Java course, and it had Entry exam question (I couldn't pass it to be honest ):

""In this exercise, you will implement a popular kids counting game in Java.
The rules of the game are as follows:

In turns, the players start counting upwards beginning with "1".
For every multiple of 3, instead of calling the number itself, the player has to call out "ka"
For every multiple of 5, instead of calling the number itself, the player has to call out "ching!"
Which leads to every multiple of 15 being called out as "ka-ching!"

The first 18 steps of the game thus sound as follows: "1", "2", "ka", "4", ching!", "6", "7", "8", "ka", "ching!", "11", "ka", "13", "14", "ka-ching!", "16", "17", "ka"...

Implement this game in Java such that, when run, it executes the rules of the game as outlined above.""
1 week ago
Campbell Ritchie for the first set I meant to count from 1. but other sets from 0, you can see @Carey Brown solution or mine to see the result.
1 week ago
@fred rosenberger That is exactly what I wanted/meant.
2 weeks ago
@Paul Clapham  I have just changed the word Fizz with Third, Ninth-Elemnt. As for user input requirement, I already meant it by "takes input".
the function of this app is exactly what I was asking for, If you have better way to ask my question to achieve same result or have better implementation then it is appreciated
2 weeks ago
@Carey Brown the code is starting from 1 and it is based on giving input in order, if you add bigger or smaller number than the number shown in the Terminal then you will get msg: Add in order + the suggested number
2 weeks ago
I have finally made it, I would thank you all for helping me.
if there are any tips for improving the code, it is appreciated

2 weeks ago
I apologize for the whole chaos happened here as I usually dont use forums,
Can you delete my post please, so I can make new one with non ambiguous question
2 weeks ago

Carey Brown wrote:What is the rule for replacing a number with Fizz ?



Every third and ninth element within 10 numbers
1 2 , ("Fizz" 3th element), 4,5,6,7,8, ("Fizz" 9th element), (once I reach 10 the rule start once again) 10 , 11, ("Fizz" 3th element),13,14,15,16,17,("Fizz" 9th element),19, 20
etc...
thank you so much for trying to help me
2 weeks ago

Carey Brown wrote:

onygen nari wrote:

Carey Brown wrote:

onygen nari wrote:I want to write a program that takes input and print Fizz like the following:
1 2 Fizz 4 5 6 7 8 Fizz 10 11 Fizz 13 14 15 16 17 Fizz 19 20...

What is the relationship between the input and the printing?



I will insert 1,2, and the app will print Fizz, then I will insert 4,5,6,7,8, and the app will print Fizz again....

Why not have a loop counter to do the "input" then?



I have changed my question and now what I want to achieve is straightforward, I just want to print Fizz like the following
1 2 Fizz 4 5 6 7 8 Fizz 10 11 Fizz 13 14 15 16 17 Fizz 19 20....
2 weeks ago

Carey Brown wrote:

onygen nari wrote:I want to write a program that takes input and print Fizz like the following:
1 2 Fizz 4 5 6 7 8 Fizz 10 11 Fizz 13 14 15 16 17 Fizz 19 20...

What is the relationship between the input and the printing?



I will delete my post and repost with as simple as possible
2 weeks ago

Carey Brown wrote:

onygen nari wrote:I want to write a program that takes input and print Fizz like the following:
1 2 Fizz 4 5 6 7 8 Fizz 10 11 Fizz 13 14 15 16 17 Fizz 19 20...

What is the relationship between the input and the printing?



I will insert 1,2, and the app will print Fizz, then I will insert 4,5,6,7,8, and the app will print Fizz again....
2 weeks ago
have changed my question to be as simple as possible.
it is possible to achieve the result I want? because I have been trying for days without success
2 weeks ago
the power of 3 is 9 right!? I want to print fizz based on that now when I reach 10 I want the power counter start once again so 12, 18 are just like 3, 9,
what I want to achieve is to print  like the following but with input not simple loop
1 2 Fizz 4 5 6 7 8 Fizz 10 11 Fizz 13 14 15 16 17 Fizz 19 20

Apologize if I have trouble in explaining it well and thank you for trying to help me
2 weeks ago
I want to write a program that takes input and print Fizz for every power of 3 within 10 segment like the following:
1 2 Fizz 4 5 6 7 8 Fizz 10 11 Fizz 13 14 15 16 17 Fizz 19 20...
however I can not make the logic work at line 18

2 weeks ago
I am very comfortable with IntelliJ IDEA however the build time for simple main method with just hello world print statement take about 1,5 - 2,5 second, whereas on eclipse it is just instate. for somebody how started to learn Java and make alot of changes/testing, instant compilation is a must. I want to ask if there is anyway to make IntelliJ fast like eclipse or it is possible to use eclipse compiler inside IntelliJ (I have tried the one that comes bundled with IntelliJ but still slow). Also I have changed the vm memory and many others settings in addition to disabling all plugins still no luck.
my laptop CPU: i5 7200u, 8 GB ram, nvme SSD
2 weeks ago