Questions tagged as 'string'

1
answer

Count the words with vowels

This is a function to count the words that start with a vowel and end with this same vowel, but I only get an error. this is the function public int vocal2 (Frase f) { StringTokenizer tk = new StringTokenizer (f.getOracion()); int i...
asked by 05.11.2018 / 09:34
1
answer

getline problem in c ++

I have a problem with my code, what happens is that when I compile it does not send me any error, but in this part of my code, the gertLine I use to enter the values (USERNAME, MAIL, PASSWORD AND NAME) , the first Characters or numbers do...
asked by 02.09.2018 / 01:31
2
answers

Insert character in a text string

I have the English postal codes have the format X1 1XX , XX1 1XX or XX11 1XX And they come to me together, so X11XX , XX11XX and XX111XX . And I need to show with the spaced format. Then the issue is...
asked by 15.08.2018 / 12:10
1
answer

Android Studio: My activitymain.xml does not recognize string.xml variables

I have a very basic application in android studio, which accesses the accelerometer and the gyroscope, and their respective values are shown in the application. Everything was fine until "suddenly", the texts of the main activity are not reco...
asked by 10.07.2018 / 21:58
3
answers

Cut string from the second "/" - PHP

I have a route saved in a variable: $path = raiz/email_usuario/Imagenes/Wallpaper/../....... I need to remove $ path "raiz/email_usuario" , I can not use explode since the email can be bigger or smaller, I thought about picking up fro...
asked by 17.05.2018 / 22:45
1
answer

Problem with area.addText (char ...) JAVA

I try to read a file from java, and add it to a JTextArea: if (e.getSource() == go) { try { String strA = field1.getText(); FileReader archr1 = new FileReader(strA); int valor = archr1.read();...
asked by 21.05.2018 / 12:09
2
answers

How do I make the titles of my viewpager multi-language?

I have a tabbed activity with 3 sections or viewpagers, and since the data type is charsequence it does not let me take the name from the string like this: @ string / conversionunidades so that it is multi-language. How do I make it multi-langua...
asked by 29.04.2018 / 06:30
1
answer

copy files containing words from a txt file [closed]

I need to copy files that contain words contained in a txt file. For example, the file I have contains: Balaena_mysticetus Balaenoptera_acutorostrata Bos_taurus Canis_familiaris Delphinapterus_leucas Equus_caballus Eschrichtius_robustus Homo_s...
asked by 14.05.2018 / 18:03
1
answer

How to compare two arrays with text strings and create a new one from repeated words in these

I have two arrays, one with a text with more words and the other with the text that I should compare, the problem is that there is a word that appears twice in each array so when I run the code it repeats itself in the new array, when it should...
asked by 17.04.2018 / 19:56
1
answer

Generate HTML with Python

I'm trying to generate HTML with Python, what I want to show is just a string, but for some reason it does not take into account the string, I hope you can help me def html_create(self,result): template = open("template.html","r") outp...
asked by 16.04.2018 / 17:29