Questions tagged as 'string'

1
answer

histogram of a c ++ sentence

I made the following program to make the histogram of a sentence counting the number of letters and consonants in the same one but it is giving error because I'm trying to get it to print uppercase and lowercase letters accented or not .. #inc...
asked by 09.12.2017 / 15:25
1
answer

Display highest frequency word per line and calculate number of words per line

I have the following text and I have to display the words that appear most frequently per line and calculate number of words for each line This is a really really really cool experiment really Cute little experiment Will it work maybe it wi...
asked by 04.01.2018 / 01:33
1
answer

String for Array / List

I have the following String: [{"Monstro":"Lobo","HP":100,"Level":2},{"Level":"1","HP":"100","Monstro":"Bruxa"}] You need to put it inside a Array ou List to get the values of each monster. How do I do this? Sorry if the ques...
asked by 02.12.2017 / 01:12
1
answer

php show date and time and handset in formats

prices display on the screen some information type: $ time = '120034' $ data = '20170508' $ mes = '201704' $ hungry = '62992161424' How do I show it like this? I echo $ 12:00. echo $ data 08/05/2017 echo $ 04/2017 echo $ phone 62-99216-142...
asked by 02.12.2017 / 19:09
4
answers

Program to discover repeated characters in strings and print backwards

I need to find out how many and which repeated characters exist in a string (after informing it). And also print this string backwards. I'm in big trouble. Here is part of the code I have made so far, but with several errors. #include <stdi...
asked by 23.01.2018 / 19:39
1
answer

Problems in String and Case

I'm a newcomer to programming recently and I have a college assignment where I have to create a registration system that receives input from customer data and then another option that prints the information on the screen. / p> But I'm having t...
asked by 22.10.2017 / 22:25
1
answer

How to separate a string in unity c #

I would like to know how to separate a string in C # unity, I ended up looking at some similar questions for C # and not on unity, I often found this example string[] linha = reader.ReadLine().Split(new string[] { "||" }, StringSplitOptions.Re...
asked by 09.11.2017 / 18:33
1
answer

Delete Last Row - Java

I'm reading a CSV using BufferedReader reading row by line converting the result to a .txt. At the end of my txt is generating a line break after the last item. I'm trying to find a way to remove last line break after the last item in the list....
asked by 05.10.2017 / 16:29
2
answers

Read strings in java within a while or do-while loop

How do I read strings in java within a while or do-while loop? without error and does not read Code: package listas; import static java.lang.System.exit; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public...
asked by 16.09.2017 / 09:53
1
answer

When I click, I want to define the phrase through the indexes

As you can see in the code, when I click I'm defining the phrase in a random way, but when I click, I want the phrase to be defined by the indexes myself, how do I do this? Public class MainActivity extends AppCompatActivity { private Tex...
asked by 13.10.2017 / 05:31