• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with findinline function

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try to write code to understand the function of findInLine function , but i failed to write a successful program.

what i try to do that if i give input "abcd" , then variable a will be = to d ,varibale b=c ,c=b and d=a (according to the input , but face a run time error)
please help
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sparsh khandelwal wrote:what i try to do that if i give input "abcd" , then variable a will be = to d ,varibale b=c ,c=b and d=a (according to the input , but face a run time error)


First: when asking a question about an error, you should always specify what the error is, including providing the exact message. I have to admit to never having used findInLine(), but from what I see, I'd care to bet that yours is an IndexOutOfBoundsException.

Second: Your statement above is definitely NOT what I get from reading the API docs for findInLine(). Maybe you could explain why you think it works that way.

Winston
 
sparsh khandelwal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey thank for your time
here comes the actual program , i modify this one to understand the working of findinline function but failed to do so :-)
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sparsh khandelwal wrote:hey thank for your time
here comes the actual program , i modify this one to understand the working of findinline function but failed to do so :-)



Hate to point out the obvious, but can you guess what the error may be based on the exception that is returned???

Henry
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic