Can anyone help me to do a Java Program of a specific pattern.It should be of only single dimensonal array,as many you want. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

Can anyone help me to do a Java Program of a specific pattern.It should be of only single dimensonal array,as many you want.

The pattern should be.... 1 3 5 7 9 3 5 7 9 1 5 7 8 1 3 7 9 1 3 5 9 7 5 3 1 I know it's a bit weird but please help me I need it for my assignment......

7th Jun 2018, 5:33 PM
Desi Kalakaar
Desi Kalakaar - avatar
15 Réponses
+ 7
Since I won't be awake when you wake up, I will post my Kotlin version so you could convert it, if you choice that option. https://code.sololearn.com/cXN2GtQPQEsb
7th Jun 2018, 10:18 PM
John Wells
John Wells - avatar
+ 6
sujith Patterns are my favorite type of code so I've got a list of them: https://www.sololearn.com/discuss/1078102
13th Jun 2018, 10:58 AM
John Wells
John Wells - avatar
+ 5
Avinash Thakur Yeah, Thanks man I should probably delete my post. deleted. This pattern doesn't make sense to me. did you figured out?
8th Jun 2018, 5:16 AM
Tanay
Tanay - avatar
+ 4
It is an interesting problem. Took me 5 minutes to write. You're choice: - working code in different language, which you convert to Java, or - I give you steps and you code.
7th Jun 2018, 8:50 PM
John Wells
John Wells - avatar
+ 4
It certainly could be, but without confirmation, you can't assume it.
13th Jun 2018, 1:09 AM
John Wells
John Wells - avatar
+ 2
sujith your third and fifth lines don't match the pattern.
12th Jun 2018, 10:41 PM
John Wells
John Wells - avatar
+ 2
you are right :-)
13th Jun 2018, 1:10 AM
sujith
sujith - avatar
+ 2
i am just a learner not a professional programmer . i just tried
13th Jun 2018, 1:11 AM
sujith
sujith - avatar
+ 2
i have changed my code try it :-)
13th Jun 2018, 10:26 AM
sujith
sujith - avatar
+ 2
sujith you are God bro.... You are God.... Thank You!!!
13th Jun 2018, 10:34 AM
Desi Kalakaar
Desi Kalakaar - avatar
+ 2
You are welcome
13th Jun 2018, 10:35 AM
sujith
sujith - avatar
+ 1
Tanay , you didn't read the pattern correctly.
8th Jun 2018, 5:10 AM
Avinash Thakur
Avinash Thakur - avatar
12th Jun 2018, 4:13 PM
sujith
sujith - avatar
+ 1
i think of third line is 5 7 9 1 3
13th Jun 2018, 1:04 AM
sujith
sujith - avatar
+ 1
i like to code. if any other project you have like this send me . i will try to solve it :-)
13th Jun 2018, 10:47 AM
sujith
sujith - avatar