Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
public String laynkitucuoi(String s){
        String str = "";
        char[] c = s.toCharArray();
        int dem = 1;
        dem = Integer.parseInt(tfnbatki.getText());
        for(int i = s.length()-1; i > 0;i--){//123456  3  654
            if( dem < i){
                str = str.concat(c[i] +"");
            }
        }  
        return str;
    }


What I have tried:

how to fix line IF?|
help meee <3
Posted
Updated 3-Oct-22 3:45am
Comments
Richard Deeming 3-Oct-22 9:06am    
Fix what? You haven't asked a question, nor described a problem.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900