Questions tagged as 'string'

1
answer

How to find repeated character blocks within a string?

I am doing a college job and in order to continue I need to get a message that has been given and find out if there are repeated character blocks within that message and what the block is. Example: message = banana; I know it has a block of char...
asked by 06.10.2018 / 15:35
1
answer

Error getting time with row.getCell ()

I'm getting data from a worksheet in excel. public void Hora() Cell horaAgen = null; if(row.getCell(7) != null ){ horaAgen = row.getCell(7); System.out.println("hora: "+horaAgen); } } In the worksheet this: 9:00...
asked by 03.10.2018 / 20:18
1
answer

Someone experienced that understands well the manipulation of Strings, that can help in this error

Good morning, I'm presenting a problem that I have no idea why, I've tried to ask other people, none have discovered the real reason for the error and how to fix it. Well my teacher, asked to implement a system with which opens a txt file that c...
asked by 13.11.2018 / 12:32
1
answer

How to check if vector fields are null?

I am building a program, which should check initially if the array of type (Class) is null. My class has the get and set method, as well as the with and without default constructors. However, when the program initializes, the values of each cell...
asked by 14.06.2018 / 23:16
1
answer

Python - Strings and files

I'm starting to learn Python files. What suggestions would you give to improve the code and make it prettier or smaller? """ A ACME Inc., uma empresa de 500 funcionários, está tendo problemas de espaço em disco no seu servidor de arquivos. Para...
asked by 19.09.2018 / 23:56
1
answer

Matrix Strings

In an exercise in the book "use the java head", it asks to declare 3 arrays of string, but when I put the code in the ide it gives an error of incompatible types string to String [] does anyone know why ??? package exercicios; /** * * @auth...
asked by 20.09.2018 / 01:58
2
answers

Return last characters from a string in PHP

I am trying to incorporate some of Infomoney's financial information into my application, and in the Investment Fund part it gives the ranking of the top portfolios. But it returns the following string :    1st MCR-MAIN INVESTMENT FUND IN...
asked by 02.10.2017 / 17:56
1
answer

Copy string to struct

When trying to copy the String nome into the String in the Struct novo->nome the program stops working, if I comment the function strcpy(novo->nome,nome); the code executes normally. //Função de inserção: lista *inse...
asked by 11.08.2017 / 16:58
2
answers

How to detect the largest word in a string in C?

I came across this problem during a personal project, it is even more curious, I wanted to please ask anyone who can give me a light with this, since I have solved the problem in other languages only in C that have not yet. p> How can I do to...
asked by 09.05.2017 / 04:54
1
answer

Received String Editing WebResponse

I get information through responseStreamReader.ReadToEnd().ToString(); . But before displaying it on the User screen I want to edit it. How to proceed?     
asked by 01.09.2015 / 18:32