Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Ojonugwa Ochalifu

Ranch Hand
+ Follow
since Feb 08, 2011
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
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ojonugwa Ochalifu

What do you suggest? If for example I decide to go for speed?
4 years ago
Can someone please explain the best way to store my data online? Like what technology do I use? Let's say my app gets data from a group of users working on a project at the same time.i want to be able to store each user's data,process it and present it to any of the users making a request.i recently stumbled upon Google App Engine,but it's so difficult to understand.i want a suggestion based on java,or something else.Thanks in advance.
4 years ago
It's okay...i actually solved it using the bubble sort method...can i post the code here?
5 years ago
No where...i just got back to it today
5 years ago
ok...let me get right to it.i'll be back
5 years ago
The answer to all your questions is yes.i don't know where to start.
5 years ago

Mansukhdeep Thind wrote:

Alan Anderson wrote:Jeff I need to shift values in elements...Say i have student[0] = "Fred", if i add Anthony to the array, since Anthony comes before Fred, i want Anthony to replace Fred at student[0] and then move Fred to student[1]...and all these while am adding new student record.

Campbell Ritchie wouldn't the arrayCopy require me creating another array? that is a destination array?



As I see it, you need to check the name to be added with the existing names in the array and accordingly add the new entry at the respective index position. Am I correct? Is this the exact use case Alan?



Absolutely,that's what i need to do.
5 years ago
Jeff I need to shift values in elements...Say i have student[0] = "Fred", if i add Anthony to the array, since Anthony comes before Fred, i want Anthony to replace Fred at student[0] and then move Fred to student[1]...and all these while am adding new student record.

Campbell Ritchie wouldn't the arrayCopy require me creating another array? that is a destination array?
5 years ago

Campbell Ritchie wrote: You may need to find out about ordering objects. Fortunately the Java Tutorials has a section which covers just that.



Am not supposed to sort it with collections.i know that's one way to do it,but the specification states otherwise.
5 years ago

William Brogden wrote:

i am not allowed to use a sort method




How about using a collection that automatically sorts, is that "allowed?"



No that's not allowed. i need to sort them as i add...
5 years ago
Hi.so i have this code.it maintains records of Student details (name and ID).Now i need it to display the record alphabetically.The problem is, i am not allowed to use a sort method.i need to add a new student object to a position where it fits in alphabetically. for instance, if i already have "Felix Brown" at student[0] and i want to add "Alan shephard" to the array, i need to move "Felix Brown" to students[1] and place "Alan Shephard" in student[0]...here is my code. I need direction.Thanks in advance.



5 years ago
okay then...i'll have a word with him.Thanks for your time everyone,i'll be back.
5 years ago