• Register

Recent questions tagged string

0 votes
1 answer 8 views
0 votes
1 answer 5 views
I require to remove all the special characters, puntuation and and speces from a string?
asked 6 days ago Daniel Anderson 2.1k points
0 votes
1 answer 5 views
What i am attempting to make a easy connection with XAMPP and MySQL server, however whenever I attempt to enter data or connect to the database, i obtain this error. Why this is happen and how to solve it?
asked 6 days ago Daniel Anderson 2.1k points
0 votes
1 answer 5 views
can someone help me why i am seeing “PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /Applications/MAMP/htdocs/lprapp/config.php:23 Stack trace:#0 {main} thrown in /Applications/MAMP/htdocs/lprapp/config.php on line 23&rdquo” this error and how to resolve it.
asked 6 days ago Daniel Anderson 2.1k points
0 votes
1 answer 2 views
For what reason i am obtaining "Unable to find the requested .Net Framework Data Provider" at the time attempting to setup a fresh datasource in Visual Studio 2010 Professional?
asked 6 days ago Daniel Anderson 2.1k points
0 votes
1 answer 14 views
Problem: My class teacher gave a assignment in Java with the below conditions: User input of the 4 characters string in this letters, symbols, and numbers, all should be mixed. If a letter is uppercase then convert it to the lowercase and vice versa. Also ...   System.out.println("a");                 break;             case "b":                 System.out.println("B");                 break; } }
asked Aug 18 Raphael Pacheco 4.9k points
0 votes
1 answer 12 views
Problem: I have written a method to find a first non repeating character in the string. Please find below my code written in Java. public static char findFirstNonRepChar(String input){ char currentChar = '\0'; int len = input.length(); for(int i=0;i<len;i++){     ... to see which one has the count of 1 first. I am new to Java does having two loops which are not nested hinder the time complexity?
asked Aug 7 Raphael Pacheco 4.9k points
0 votes
0 answers 18 views
I have a text file that consists of similar lines and few are half similar to other lines in a text file. Input.txt I would like to play: Volleyball I would like to play: Volleyball I would like to play: TableTennis I would like to play: Baseball I do not know how ... collected[key]}\n') I can print only the second line. Don't know where I am going wrong. Any help would be appreciated. Thank you
asked Jul 16 anonymous
1 vote
1 answer 27 views
I am trying to write a script to print specific words after a particular string. Here is the input file Theyare "playing in the ground", with friends Theyare "going to Paris", with family Theyare "motivating to learn new things", by themselves In the output I am trying to select "are" as the keyword ... open ('input.txt', 'r') as f: for lines in f: a = re.search(r'\bare', f): if a: print (lines)
asked Jul 15 anonymous
0 votes
1 answer 38 views
Problem: I am trying to write the application and some part of its functionality is to generate the LaTeX CVs so I am finding myself in the difficult situation where I have the strings as shown below: \begin{document} \title{Papers by AUTHOR} \author{} \date{} \ ... working for me and also the dictionary is not working with the %(email)s syntax. Can someone help me in fixing the LaTeX issue?
asked Jul 13 Raphael Pacheco 4.9k points
0 votes
1 answer 24 views
Problem: Hello all, I was solving some mathematical problems using the python programming language. Recently, I solved calculating the factorial value of a number. Now, I want to make a program that can check if a number is prime or not! Therefore, I&rsquo;ve written ... reason? As per my understanding, I haven&rsquo;t used any string in my program. Please, shed some light on this. Thanks.
asked Jul 10 adamSw 11.3k points