Kevin Thien wrote:Ah yeah, I had that idea too, but I was hoping for a "cleaner" way to do it I guess without an extra IF statement. The IN class is within my package so that's okay, thanks for the answer though!
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Aditya Jha wrote:Please note that if this question is part of an academic exercise, they probably want you to check palindrome without using an API like StringBuffer.reverse().
Junilu Lacar wrote:To make your code even less superflous, StringBuilder has a constructor that takes a String used to initialize the StringBuilder, so you don't have to call append().
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Junilu Lacar wrote:The Director of Agile Practices at Intel likes to say "Steal with pride," that is, there's no shame in using somebody else's code if it helps you get the job done better and faster (barring any licensing issues, of course)...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Kevin Thien wrote:I just found it easier to code the reverse method because it was a single line of code.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
Kevin Thien wrote:I just found it easier to code the reverse method because it was a single line of code.
Don't re-invent the wheel. It may be trite, but its true.![]()
Winston
Rameshwar Soni wrote:This is why 95% graduates are not suitable for REAL WORLD programming which we use in industries
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:I think all programmers should be required to write at least one divide-and-conquer sort in their lives and create a few different types of hashtable from scratch; what I don't expect (and would probably mark them down for) is for them to do it when they're writing a project.
You obviously only shop at *****Winston Gutkowski wrote: . . . cashier at my supermarket who will calmly charge me 50 quid for a single steak and a pint of milk . . .
Campbell Ritchie wrote:You obviously only shop at *****
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
I'm so happy! And I wish to make this tiny ad happy too:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|