Sterling Hicks wrote:
Im following the Head Start Java book and this was an example in the book. Why have boolean canRecord = false; ?
Ganish Patil wrote:I know It's not related to Java mainly but still I need help from this community as I like Java. I live in Pune India.
10th standard, pass out year 2003 with 43.88%
12th standard, pass out year 2007(2 years of gap) with 47.33%
Bachelor of computer application, pass out year 2010 with 71.68%
Master of computer application, , pass out year 2013 with 67.62%
After Master of computer application 2 years of gap. During final year project I worked in a small company on core Java. Did their small projects in swing. after that had gap. so what should I do now. I know core java and little adv. Java. I heard of fake certificate my friends are doing course for 25,000 Rs and fake certificate also but I feel guilt of such fake certificate and all so please need help what should I do now? I don't even know any Java framework. if I join class now then It will take 3,4 months for class again so don't want to spend more than a month as jobless. frankly I did nothing in gap and don't want to lie to any company. so please any suggestions
David Spades wrote:problem is, we're given a new box to put our application and the data resides in other box which is not under our control, so....
that's why I've been asking around about ehcache
I'm only allowed to implement any kind of workaround so long I put it in my box and not changing anything in other boxes. oh well, if it's easy, anybody can do it right? that's why there's always obstacle, be it technical or "non-technical"
Carey Brown wrote:
Karthick Pattabiraman wrote:Consider I need to build a process to add client details. Today the application has 5 different type of customer.
The process is up and running
Tomorrow a new type of customer is added by the business. Now how should I have written the process so that I can implement the new change without bringing down the existing process?
But this look to be error prone as it’s depending on the runtime input. And also can the new class added to the application can be implemented without stopping the running process. I tried but could not do it.
My take on this is that you have a process that is up and running 24/7 and you want to make changes without bringing it down. This usually involves having two or more copies of your program with a simple load balancer as a front end. Then you can temporarily suspend one of the running programs and bring it back on-line as a new version of the program. In the mean time the other running copies are handling the load. Repeat until all running copies have been updated.
Campbell Ritchie wrote:But in both those approaches the changes to code are minimal. If your CustomerX class is a true subclass of your plain simple Customer, then won't it work if you add a new customer type like that.
You can have configuration files which you add customer types too. Or you can have databases which you add customer types to. But you will have to write some code somewhere whichever approach you take.
Campbell Ritchie wrote:Look at Kendall Ponder's app in this thread. If he wants to add an option to his menu, how is he going to do it?
Campbell Ritchie wrote:The reason is that handing out a complete answer prevents OP learning from the exercise. This is what it says on the contents page for this forum:So, don't be annoyed, but I have pulled rank and deleted the post (it remains in memory so I might restore it later).
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
Joshua Harris wrote:Hello,
So, as the title says I'm trying to count the number of elements in an ArrayList which also have duplicates. So for example, in an ArrayList of strings which contains cat, cat, dog, horse, zebra, zebra, the answer should be two.