Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,208,831 members, 8,003,951 topics. Date: Saturday, 16 November 2024 at 01:19 AM |
Nairaland Forum / Science/Technology / Programming / Someone Help On A Very Urgent Question Pls Guys (904 Views)
Java Proramers:java Assignment: Can Someone Help Provide A Solution To This / Can Someone Help Out On How To Add A Database To My Windows Forms App / Runnable Java Atm Source Code Anybody,pls For Project, Very Urgent (2) (3) (4)
Someone Help On A Very Urgent Question Pls Guys by dsypha(m): 11:23pm On Sep 17, 2013 |
pls guys help, I was jus goin tru some beginner exercises in java. came accross dis question. I've tried many times but can't get it... pls som1 help me wit a soln or jus an idea pls oo! I tak God beg una! Write an application that inputs a line of text and a search character and use string method indexOf to determine the number of occurences of the character in the text. Uppercase and lowercase should be counted together.. pls som1 shud help oo |
Re: Someone Help On A Very Urgent Question Pls Guys by nollyj: 11:31pm On Sep 17, 2013 |
I think it will be nice for you to show what you have done and other people will direct you on how best to solve the problem rather wait for a complete solution |
Re: Someone Help On A Very Urgent Question Pls Guys by dsypha(m): 11:53pm On Sep 17, 2013 |
nollyj: I think it will be nice for you to show what you have done and other people will direct you on how best to solve the problem rather wait for a complete solution bro am typin from fone, nt pc... anyways I'll summarize.. I used a diff method to get d work done actually bt d book specifies I use string's indexOf method .. Wat I acutually did was split d text to be searched tru... den loop tru d arrays of d text pieces, and incremented a variable everytim I came acros d search char. bt I want to see hw its done wit indexOf. and again d method I used was case sensitiv, if I searched for o, all ocurence of O will nt b considered which again, is against d question |
Re: Someone Help On A Very Urgent Question Pls Guys by dsypha(m): 6:54am On Sep 21, 2013 |
Naija programmers busy ehn... #Smh! |
Re: Someone Help On A Very Urgent Question Pls Guys by mashnino(m): 11:27am On Sep 21, 2013 |
Sorry I am on phone... I woulda tried it for you... But dey ve alredy Givin u ansa na... Use d indexOf with an if.... Else statement... Den increment d variable... Wen i get on system I will try it for you... |
Re: Someone Help On A Very Urgent Question Pls Guys by ooman(m): 2:54pm On Sep 21, 2013 |
class Searchchar{ |
(1) (Reply)
10 Tips To Go From A Beginner To An Intermediate Developer / Which Hosting Site Do You Use For Your Java Based Web Apps? / Help Needed with SPSS
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17 |