Searching in reverse direction

Hello,
Anybody any idea as to how i can search a string or character starting from the reverse direction i.e from the end point of the document
Thanks in advance.
Reg,
suri

OOOPS, sorry, here is the right one:
public class reversDemo {
public reversDemo() {
public static void main (String args[]) {
java.lang.String s = "Hello World";
for(int i=0; i<s.length(); i++){
System.out.println(s.substring(s.length()-i-1, s.length()-i));
}

Similar Messages

  • Find reference reverse direction

    I have a simple motion application that I am trying to troubleshoot.
    I am moving my motor from the home position to the user specified target position in the forward direction. I then want to return back to home (in the reverse direction). However, whenever I use find reference.flx to find home, it only wants to move in the forward direction.
    How can I get find reference.flx to find home in the reverse direction.
    LabView 8.6.1
    NI-Motion 7.7
    PCI 7334
    Solved!
    Go to Solution.

    Thanks for the reply Jochen!
    Just so that I understand correctly, would I have to wire Find Reference.flx after the Load Reference Parameter.flx?
    And, using Load Reference Parameter.flx could I load multiple parameters? (Example: Could I select the Inital Search Direction and the Edge To Stop On?)

  • PROBLEM WITH LOGO PRINTING IN REVERSE DIRECTION

    HI,
    When Ever I take the print out of the checks, The company logo is getting printed in reverse direction, but if i look at the print preview , it is showing up correctly. even if i take the print out of just  the logo from SE78, the logo is getting printed out in reverse direction...I think it is the problem with the printer settings, but i m not sure. Can any one please help me out with this issue,
    Regards,
    Raghu

    Hi,
      Are you trying to get this print directly from the backend or some frondend application triggers your form? As I also faced same problem many a times but then observed that when smartform was triggered from frontend, logo was always in its right position.
    Regards,
    Shikha

  • My laptop screen displays on reverse direction

    HP Pavilion DV6-2121er
    OS: Windows 7 Home Basic
    My laptop screen displays texts and symbols on reverse direction. For example, on the desktop "My computer"  - as "retupmoc yM".
    I did reinstall my OS, but it didn't help me.
    What problem may be? Please, help me!

    I have the same problem.  A more accurate description would be that the display is mirrored...
    If I view the reflection of my display in a mirror everything appears normal.
    If I view my display directly everything is reversed horizontally pixel by pixel (i.e.. mirrored).
    At no point during the boot process is the display correct.  As soon as the BIOS posts the screen is messed up so this issue has nothing to do with the display driver as it's not even loaded yet.
    My problem is actually slightly worse.  My display is mirrored and then shifted to the right half a screen length with pixels beyond the right edge of the screen getting wrapped around to the left side of the screen.  You can get a sense of the problem by doing or imagining the following scenerio:
    1) Take a screen shot of your desktop.
    2) Open the screen shot in photoshop and mirror it (not the same as rotating or flipping)
    3) Print the screen shot and tape the left edge of the paper to the right edge forming a tube
    4) Make the tube flat again by cutting it down what used to be the middle of the image.
    Please help HP

  • Word 2008 Arabic script - not connected or reversed direction?

    Hi - we have upgraded to Word 2008. My wife is studying Arabic. Now any typing in word does not connect the letters nor go in reverse direction. Have set the Keyboard to Arabic QWERTY. Also, when copy and pasting Arabic translations (eg from Google) they the paste looses character connections and order reverses. Pasting into MAIL comes out OK.
    Do I need to specially import a font for Word? 2004 was OK.

    Do I need to specially import a font for Word? 2004 was OK.
    You are mistaken, MS Word for Mac has never supported Arabic. Only the Windows version can do it. You need to use another app. TextEdit that comes with OS X works, Mellel is the best.
    http://homepage.mac.com/thgewecke/TypingArabic.html

  • Reversing direction of Text Behaviors

    Hi all -
    Once again, back with another question. Any Motion gurus out there, would love your input.
    So, several of the text effects in Motion feature a "wipe/burn/glow on" where a text object starts at 0 opacity and is brought up to 100% as the effect completes. You have two options for the direction these effects go - left to right, or right to left. I want my text to "burn" in ("Flash intro" behavior) from the right side of the screen.
    What I can't figure out is, when I switch the Direction to "right to left", instead of burning on from 0% to 100%, it goes from 100% to 0% - i.e. erasing the text instead of laying it down. What gives? I can't imagine that a program like this wouldn't allow you to go either direction.
    So what am I doing wrong?..FYI, I tried using the "Reverse" parameter behavior, but you can't apply this to "Direction."
    Thanks in advance!
    Dual 2.6 Intel G5   Mac OS X (10.4.8)  

    Have you try change the (from/to)dropdown list ?

  • How to reverse direction of title animation

    Friends,
    I just downloaded motion 5 to use with FCPX titles.  is it possible to use motion 5 to reverse the direction of a title animation?  For example, FCPX has a certain title is shown entering from the left.  I'd like it to enter from the right.  Can I make the switch?
    Thanks!
    Steve

    It looks like that one is animated by keyframes. In this case you could make the animation go right to left by reversing the keyframe order and then adjusting as needed.  You will need to do this with the Emitter and the Rectangle Mask.
    For the Mask:
    -Change the Mask Blend Mode to Subtract.
    -In the Inspector, go to the X Position and to the right of the keyframe indicator, click the downward facing arrow and select Show in keyframe editor from the contextual menu.
    -In the Keyframe editor, option click the checkbox next to the Transform.Position.X channel.  this will hide the other keyframes.
    -Select both the keyframes for the X channel.  While they are both selected right click on top of one of the keyframes and select Reverse Keyframes from the contextual menu.  This will reverse the animation direction for the Mask on the text.
    For the Emitter:
    Basicly, do the same thing as with the Mask.  Go to the keyframes for the X postion and reverse them.  In this case you will need to adjust the start and end postions. The first keyframe will need to be near the right side of the canvas, and the second keyframe will need to be further away.  Once you are close you can adjust the second keyframe to match the mask that wipes the text

  • Searching UME attributes directly in SearchQueryListBuilder

    Hello Experts,
    I designed a custom Who is who application where the user should have the possibility to enter attributes directly in special edit fields.
    To search in the UME index I build up a SearchQuery with this code:
    SearchQueryListBuilder queryBuilder = new SearchQueryListBuilder();
    queryBuilder.setSearchTerm(queryString);
    queryBuilder.setSelectedSearchAction("FUZZY");
    IQueryEntryList qel = queryBuilder.buildSearchQueryList();
    is it possible to search directly in the UME attributes of the user (e.g. for the lastname)
    Is it possible with the set of custom properties? May the code be like this?
    queryBuilder.setSelectedCustomProps("attribute_name")
    How should the attribute name should be structured so it works for e.g. the lastname?
    What I also tried is to build up the connection to the attribute in the query string:
    e.g. querystring = "lastname : querystring"
    but this variant doesn't work if you enter a lastname like Sm*th for Smith
    Please help me.
    Thank you
    Best Regards
    Frank

    The correct syntax is:
    queryBuilder.setSelectedCustomProps(ume:lastname(value=Smith))

  • Site Search Module Re-Direct

    Hi guys,
    Wondering if there is a way of adding a 're-direct' code to the Site Search Module HTML code, so that people can enter info in the site search box, and rather than keeping them on the same page, it takes them to a new page.
    Thanks,
    Aaron

    Nicole, You was right in the first place but you you said &PageID= for the url when in actual fact it is just ID.
    So, Aaron you do as Nicole said first (because it is easier) but use ID instead of PageID so..
    /Default.aspx?SiteSearchID=3510&amp;ID=/yoursubfolder/custompage
    &amp; is the HTML entitity for & and is better valid markup

  • Search bar takes directly to site

    I am using the latest Firefox mobile version on an android device. Google search is the only enabled search device. When I search in the address bar, I don't receive a google listing of sites. I am instead directed to the Wikipedia page about the item, the IMBD page if it is a movie, or a yahoo answers page if my query is similar to a question. This only began a few weeks ago, and I have to search from the Yahoo or Google mobile page to avoid this. Does anyone know why this is happening and how I may fix it?

    Hi,
    I'm sorry you're having this problem with search. I think this is a bug and I can reproduce it on my device running version 14. Can you tell me when you go to About:Firefox if you are running v13 or v14? That will help me when I report this.
    As a workaround, when you type the keyword in the title bar, select Google from the list of search engines. This should make it search Google. Do let me know if that doesn't work.
    Thanks for helping to improve Firefox for Android!
    -Michelle

  • When selecting a link from Google search I'm directed to the Bing search page.

    On most (not all) links that I select from either Google Search or Bing Search results I am directed to the blank Bing Search page.

    PC virus won't run on iPad.

  • Reverse direction for Hebrew report

    Hi,
    Many of our reports are in Hebrew which reads from right to left. Even if we build the reports such that the fields are all in the right direction, the Row Numbers are on the left side as well as the Page Items, Sheet folders...
    The users can obviously work the way have until now, but I am curious if there now exists a way to reverse the direction of the report. We are now in the process of updating to version 10.1.2.3.
    Thank you.
    Leah

    Have you verified the following ...
    Discoverer Viewer supports Arabic and Hebrew. It will support bidirectional text display and page layout. To obtain this support, the user must use a browser that supports bidirectional languages (such as Internet Explorer 7.x) using the "dir" attribute and must select a Hebrew or Arabic locale at login. It is recommended that users create their workbooks in Discoverer Plus, using a Microsoft Windows NT client. Any workbook that will be viewed in an Arabic or Hebrew environment should be created with default column alignment.
    If yes then I would recommend you to contact Oracle Support and see what they say about this .
    You can ask for an ER also.
    Thanks,
    Sutirtha

  • Contextual event in reverse direction ( from child TF to parent view )

    Hi ,
    It seems all example of Contextual events talk about mirroring input value from Parent page to Child TF running in a region and there are numerous examples out there.
    What I wanted to accomplish was that an lov in a child TF triggers a contextual event and the parent TF takes the selected list of values. It needs to conduct a search based on these values and than mark the rows in a (tree)table.
    What has succeeded is almost all aspects of this. I can fire the event and receive it successfully. But the problem is the the backingBean class that I create via EL is not binded to my parent pages components. The treetable component returns null.
    My handler code (the handler code from the bean which you use to create the data control to listen to the cntxtual event) is almost 1:1 to as the code from the book "Oracle Fusion Developer Guide: Building Rich Internet Applications with Oracle ADF Business Components and Oracle ADF Faces", Chapter 6, page 210.
    public void receiveEvent(
    DCBindingContainerValueChangeEvent incomingPayload){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    Application app = fctx.getApplication();
    ExpressionFactory exprFactory = app.getExpressionFactory();
    ValueExpression valExpr = exprFactory.createValueExpression(
    elctx,
    //reference the managed bean that holds the mirror value
    //property displayed in the input text field
    "#{backingBeanScope.ConsumerBackingBean}",
    Object.class);
    ConsumerBackingBean consumer = null;
    consumer = (ConsumerBackingBean)valExpr.getValue(elctx);
    //get the changed attribute value from the contextual event
    //payload
    String newValue = (String)incomingPayload.getNewValue();
    //set the new value to the backing bean property that is
    //referenced by the input text field in View 3
    consumer.setMirrorValue(newValue);
    AdfFacesContext adffacesContext = null;
    adffacesContext = AdfFacesContext.getCurrentInstance();
    //partially update the text field to display the new value
    adffacesContext.addPartialTarget(consumer.getMirrorTxt());
    The #{backingBeanScope.ConsumerBackingBean} evaluates in my case to fine. But every component I should see as binding in the bean is null.
    Since the handler is declared in the pageDef of this parent page Fragment, i assumed the last bit about it being able to get to the backing bean and hence to my components should also be possible.
    If I cant refresh my components than I dont see the use of the contextual frameworks for me.

    You should find this post useful: http://flexponential.com/2010/12/05/saving-scroll-position-between-views-in-a-mobile-flex- application/
    It demonstrates one way of saving and restoring data when pushing and popping a view.

  • Replaace values in the columns reverse direction

    Oracle 11.2.0.1
    Windows
    create table test
    code varchar2(2),
    col1 varchar2(2),
    col2 varchar2(2),
    col3 varchar2(2),
    col4 varchar2(2),
    col5 varchar2(2),
    col6 varchar2(2)
    insert into test values ('01','K','P','O','R',null,null);
    insert into test values ('02','I','S','L',null,null,null);
    insert into test values ('03','P',null,null,null,null,null);
    insert into test values ('04','K','N',null,null,null,null);
    insert into test values ('05','K','N','Z','G','H','T');
    SQL> select * from test;
    CO CO CO CO CO CO CO
    01 K  P  O  R
    02 I  S  L
    03 P
    04 K  N
    05 K  N  Z  G  H  T
    Required Output :  (Reverse Values in the columns)
    CO CO CO CO CO CO CO
    01 R  O  P  K
    02 L  S  I
    03 P
    04 N  K
    05 T  H  G  Z  N  K
    Thanks.

    with
    test as
    (select '01' code,'K' col1,'P' col2,'O' col3,'R' col4,null col5,null col6 from dual union all
    select '02','I','S','L',null,null,null from dual union all
    select '03','P',null,null,null,null,null from dual union all
    select '04','K','N',null,null,null,null from dual union all
    select '05','K','N','Z','G','H','T' from dual
    select code,
           substr(cols,instr(cols,'|',-1,2) + 1,instr(cols,'|',-1,1) - instr(cols,'|',-1,2) - 1) col1,
           substr(cols,instr(cols,'|',-1,3) + 1,instr(cols,'|',-1,2) - instr(cols,'|',-1,3) - 1) col2,
           substr(cols,instr(cols,'|',-1,4) + 1,instr(cols,'|',-1,3) - instr(cols,'|',-1,4) - 1) col3,
           substr(cols,instr(cols,'|',-1,5) + 1,instr(cols,'|',-1,4) - instr(cols,'|',-1,5) - 1) col4,
           substr(cols,instr(cols,'|',-1,6) + 1,instr(cols,'|',-1,5) - instr(cols,'|',-1,6) - 1) col5,
           substr(cols,instr(cols,'|',-1,7) + 1,instr(cols,'|',-1,6) - instr(cols,'|',-1,7) - 1) col6
      from (select code,rtrim('|'||col1||'|'||col2||'|'||col3||'|'||col4||'|'||col5||'|'||col6,'|')||'|' cols
              from test
    CODE
    COL1
    COL2
    COL3
    COL4
    COL5
    COL6
    01
    R
    O
    P
    K
    02
    L
    S
    I
    03
    P
    04
    N
    K
    05
    T
    H
    G
    Z
    N
    K
    Regards
    Etbin

  • How do i reverse directions for taking a picture

    I can not remember how to change directions to take a picture facing out instead of toward me?

    Tap the double circular arrow icon inside the camera icon in the top right of the screen.

Maybe you are looking for

  • Digital Cinema Desktop ?

    The option under view, for the Digital Cinema Desktop, is grayed out, I can't select it. I have an iMac and no monitors or camera connected. Any thoughts as to why I can't playback in full screen? Tom

  • Error when trying to load data from ODS to CUBE

    hi,   Iam getting a short dump  when trying to load data from ODS to CUBE. The Run time error is 'TYPELOAD_NEW_VERSION' and the short text is 'A newer version of data type "/BIC/AZODS_CA00" was found than one required.please help me out.

  • Query Regarding XSD Mapping

    Hi Experts, I 've the following requirement: My Source XSD is of the form: <element name="source" ....> <complextype> <element name="customNode" minoccurs=*0* maxoccurs=20> <complextype> <sequence> <element 1....> <element 2....> </sequence> </comple

  • How to create graphics in labview?

    Dear All, I'm a graduate student at University of Alabama at Birmingham, AL. I'm working on a project in which I have to design experiments for the undergraduate students to introduce them with the LabVIEW software. In one of the experiments I want t

  • HT201068 why all videos from Chinese websites cannot be opened after the update??

    why all videos from Chinese websites cannot be opened after the Remote Desktop Client Update 3.8.2 v1.1??