substring tag

4 questions


1 answers
134 views
0
Find a specific word location in a string

Is there a method like java's contents or indexOf?I'm going to write it like this.if not somestring.contains (String to Find): continue


1 answers
88 views
0
You want to determine if the list containing the string contains a specific string

my_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456']How do I find out if there is an 'abc' in the list from the same list?What I know is that list items like 'abc-123' and 'abc-456' have to match ex...

2 years ago

1 answers
75 views
0
Implement only one duplicate regular expression character

import reBefore_str = The name is Chul-soo Kim, the phone number is 010-0000:0000, and the place to make a reservation is Wolha Village. The number of people is nine. The date is 2019-11-11after_str =...

2 years ago

1 answers
82 views
0
String truncation using Java substring is not working properly

package assignment2;import java.util.Scanner;import java.util.Arrays;public class assign3 { public static void main(String[] args) { int n; int m; Scanner scan = new Scanner(System.in); System.out...

2 years ago

© 2024 OneMinuteCode. All rights reserved.