Danyl's Posts
Nairaland Forum › Danyl's Profile › Danyl's Posts
1 2 3 4 5 6 7 8 ... 28 29 30 31 32 33 34 35 36 (of 44 pages)
@javanian, tnx 4ur contributions. I think with an ArrayList u cn delete an element at a specified position bt with a/an string or any oda primitive array, not that i know of... Wat i intended to do wit d datastructure is to add the answers with the question serial no/index in the datastructure for a final review...getting d final score of users can also be accessed frm dat. |
Javanian: I think you are just playing around with these data structures. A map and a list have different uses, each has its strength and weakness. It all depends on what you are trying to acheive. If the size of the data is known, then a list is even an overkill. You could have just used a simple array. Maps are mostly used when you want to store data in a key-value system. It could be a hash map, TreeMap a dictionary e.t.c. I don't know if there is a data structure that would efficiently help you in what you are trying to acheive but to find duplicates in your data structure you can search through it for duplicates before inserting. I suggest you use something like a binary search which would run in O(logN) time (i think) but its way better than looping through it which would run in O(N) time at best case. But for effieciency you would have to sort the data with preferably a quick sort or anyother type of sort before searching.thanks 4dat piece,actually am building a kinda Q & A engine and arrays wönt handle d problem,der will b times wen i might want to remove an element frm d storage,dats not possible with array, List should do it but I'm looking 4 a datastructure dat stores using a key-value mapping that is y i used Maps in d first plc. Searching for key value pairs workd on it, but when trying to print the all d stored key-value entries only one record ws returned,so am trying 2figure a way out. |
Gudmornin NLders,am having some issues with a program that requires storing selected values into a datastructure. I used the Map interface- Map answerMap=new HashMap(); since the Map interface cannot be instantiated. When i wanted to get the key-value pairs stored in d map, only one element was stored. What could b problem. I tot of using a HashMap<Integer, String> aMap = new HashMap<Integer, String>() to handle d problem perhaps that'll solve. When i usd List, it worked bt it allows duplicate entries which I don't want..how best can i go abt dis. I don't duplicate entries in the datastructure. Thanks. |
This is an interesting topic,however to add a few comment...the bible sed: woe to the inhabitants of the earth for satan has been released into the world,i can tel u that satan is the god of this world not God,no wonder even d saints are been deceivd. Jesus Christ has predicted this beforehand-if so possible even the elect shall be deceived. The truth of d matter is dat God wants prosperity for His 'children', y did God blessd Abraham so much dat he had enof to bequeath to his descendants, y did God blessd Isaac Jacob n David wt abundance..they al av one thing in common,dy knw the God dey r serving... Isaiah sed those who Knw their God shal do exploit. In reverse, dos who do not knw der God shal b xploited,dats y even d pastors r goin d wrong way of the devil,many pastors r divorcing der wives, fornicatn and all sorts of things...dy are being enticed n exploited by d god of ds world. The kingdom of God we are told to seek 4 was likend to a mustard seed by Jesus in one of His parables, he also likened d WORD of God to a mustard seed,d kingdom is not only in word bt in d demonstratn of God's power to us..if u seek His word and put it into practice, u r seeking 4 His kingship and His kingdom to b established in ur affairs by so doing u'll kip walking in the Spirit n u won't fulfill d dictates of d flesh... God r blessn good and dependable christians who knws the God dey serve...if u walk longer with God,God'll kip on testing u,as u pass d challenge u move up in maturity....if u r not matured in Christ u'll kip on struggling 4d things of ds world. Y did Jesus Christ became poor so u myt b rich thru His poverty,we av lost d very essence of d death n ressurectn of Christ dats y d devil is changing our focus...ds days I pray may God open our eyes 2c where we r going. |
hammedkola: If you are using a dreamweaver, just change the doc type from XHTML 1.0 transitional to XHTML mobile 1.0...do I have to create that subdomain or changing to XHTML mobile will automatically redirect everyone who access the www.abcxyz.com to html://m.abcxyz.com. |
Hello fellow NLders, i want to ask that how can i develop the mobile version of my website such that when accessing it, they'll be redirected to a url with the ff format: http://m.abcxyz.com, so also what considerations needs to be taken in order to make site faster and well displayed for those accessing the site. Thanks |
[quote author=Raylight_1]need d codea[/quote]you may use yii framework,its quite simple to implement,or better still try to learn PHP, or use facebook comment box API, it'll also serve u. |
[quote author=Raylight_1]need d codea[/quote]you may use yii framework,its quite simple to implement,or better still try to learn PHP, or use facebook commen box API, it'll also serve u. |
surveycash: x-pat cannot threaten them with a lawsuit because I am sure he does not have the legal backing for it. What makes the idea his? Nothing. No evidence to show.if i may ask, is that patenting going to be within a local context? Say in Nigeria only, while ur ideas could be used somewhere else outside Naija |
222Martins: Just as God opened the eyes of Elisha's servant to see the chariots of fire, i just wish God can open the eyes of many to see the opportunities in Nigeria. Countries such as China, South Africa, U.S.A, U.k, etc are scrambling to invest in Nigeria,.....while our youths are scheming on ways to run abroad for greener pastures. We need a change of mindset. I made my first $10,000 in Nigeria,......and i will make my first $1,000,000,000 in Nigeria. May God help us all....can i get to know u sir? Am Ayodeji Olabiyi...how did u start ur enterprise and what challenges did u met with when securing ur start up capital and how did u overcome it all? Olabiyi007@gmail.com |
Helo, great NLders, how standard can it be to study medicine in Spain. Just want to see ur perspectives and comparisons between Spain and other European countries in terms of tuition fees,standard of education n standard of living. |
born2begreat: I have my e-passport issued in 2010 and it was lost to fire accident last year. I learnt that to get a new e-passport for lost or stolen i will have to be in Abuja. Now someone confused me today that i can have it done here in Lagos at 35k and the issuing date and passport number will different from the lost one. i dont know if anyone hav an idea about dis. And if its true that i will b going to Abuja, how much is it going to cost? how long is it going to take? coz i can only have 2 days off from my work anything beyond that 2days is sack. Pls i need your help friends...Am lost in confusion@justwise, am interested in d answer to ds question. 2ndly, apart from the above quote, what if i want to effect a change in my surname on my e-passport, though it still has 2years to its expiration date, and how much can it cost me to effect those changes. I heard it cn only be done in Abuja, pls whats ur view on this. Thank you |
@shimao, the problem's solved. Thanks @xterra2, it's bn solved |
Thanks shimao,i'll luk into d second option,n return 2gv an update. |
Good day gr8 programmers,i want to add a time stamp that updates itself every seconds on my GUI,actually its an applictn that nids users to perform a task within a specified time limit. I want it to be smthn like ds Time: 00:00:00, the first set of zeros is the hour, next minute and nxt seconds, while d seconds start countn,it gets to 60, the minute increments every 60 seconds. I understand ds is a threadn issue n I've tried implementing the runnable interfc bt its not working as intended...am working ds desktop on netbeans so my codes may not luk gud but if any1 can help a simple code snippet will be enough. Thank you |
maxibrainz: You can start with fiverr or betonmarket, the are very good online business that pay wellwhat is this betonmarket really is it related to forex in any way... |
sunbbo: We are in to suppling of kerosene(dpk) and diesel(ago) at any quantity to any part of nigeria. You can reach us on 08059205086, 08107769153 or you can do a mail to us @ talk2sunbo4u@yahoo.comHow much is your supplies now, we once talked about this through my email at olabiyi007@gmail.com |
ledafaze: Guy,the problem has been solved thank you. |
chacha3: u are so on pointObinrinnnnn, so many women are in the relationship for the money.... |
Thanks@dasmog+ 4dat piece,i'll go over it... |
Do u intend to run java sdk or Jvm like an executable...i guess so but that isn't possible may be u shud reword ur question... |
Helo house, How can one copy Strings from Stringerbuilder objects into a string array in order to loop through the array elements without raising any synchronization issues on the StringerBuilder object. E.g StringBuilder builder=new StringBuilder(); StringTokenizer element=new StringTokenizer(builder.toString()); int count=element.countToken(); //new string array to copy d string tokens frm d StringBuilder String[] string=new String[count]; |
[quote author=dansmog++]but how does gameloft do it? There are some of there games that are for trial, and after the trial, you can buy the game with credit on your phone (NGN:100). Even when you go to mtnonlineplay.com you buy game with your phone if there is credit. And this is not limited to MTN only.[/quote]may be one have to research more on that...there must be an api they are using to get users download their apps while paying @d same time or may be once dey subscribe by sending it through short code Sms,they av a timed download link |
hello house, I've been on this project for sometime now, i have this problem with my database driven software which am designing using java. when i retrieve the fields from the resultset, i store all the data in a ArrayList object which i later on copied into a stringBuilder for a persistence, because i have used a List but everytime i try to iterate through all the retrieved rows i only get a null value after the first row or second row has been given, now i have everything in the StringBuffer object but i want to use a String array, to store all the string in the string buffer so i can iterate through the elements and scroll through them on a JLabel, but its not dynamic enough, but i dont want to use a fileIO system to do this pls how can i go about this. the program works well if i use an arbitrary String array but with the StringBuilder object its not dynamic, how can i go abt it. thanks. |
U may try this and see if it works: stop talking n back off wheneva he's coming wt his uncontrollable anger n leave d house... U may stay away 4sometime, when he realized how useful u r he'll start a search program 4u,n u'll see that in adverts of course. If he doesn't do that then he's not worth u... Just divorce him jejeli b4 it escalated into somethn else |
Akby: Yeah u must have a minimum of upper credit pass in your ND and also it must be one sitting O'levels... Faculty of medicals in UI accept only one sitting! If u meet up this requirements u are simply good to gowhat about medicine...in UI. And if u have a 2.2 in botany n u want to do medicine thru DE. What r d chances of such |
Is there anyone goin for DE into medicine i hav some questions: does OAU accept botany 2.2 grade into medicine.. |
1 2 3 4 5 6 7 8 ... 28 29 30 31 32 33 34 35 36 (of 44 pages)
