Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Write a class called GenNumbers to generate the following output ?  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1
22
333
4444
55555
 
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Glad I could help.
 
mark ralphael
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you joking or what, that is not generating, that is simply copying.
 
author and iconoclast
Posts: 24203
43
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by mark ralphael:
Are you joking or what, that is not generating, that is simply copying.



Mark, if you're serious, you ought to have a look around at the other threads in this "URGENT posts" forum; and check your calendar.
 
mark ralphael
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a mock question I was given for an interview, it is not urgent, but it would be nice to see how the problem is tackled.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As mentioned, you need to check your calendar and look at the other threads in this forum. If you have a serious question, you should go to one of our serious forums. However, given the mood of most of our members, you may need to wait until tomorrow to get serious answer.

Layne

p.s. If you are unfamiliar with today's significance, I'm sure google might be helpful if you just type in the date.
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't realize this was a real request. If you haven't figured it out yet this is a bit of a joke forum.
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I think most of us here would probably do something like this:



- Jeff

P.S. Seriously, bring this in to your interviewer, explain to them how it works, and you'll probably get the job.

P.P.S. Or you might get thrown out instantly. So on second thought...
[ April 01, 2005: Message edited by: Jeff Jetton ]
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He's posted over here:

http://www.coderanch.com/t/376405/java/java/Programming-Interview
 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i bow before the master, Jeff Jetton.

it would have taken me a week to obfuscate up something like that. how he did it in less than a day i will never fathom.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by M Beck:
how he did it in less than a day i will never fathom.



Oh that one's easy: he just naturally writes bad code
 
Beauty is in the eye of the tiny ad.
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!