Questions tagged as 'string'

3
answers

locate string numbers

I'm trying to do the following: I have a string type this: String req="Intel Core i7-8700K 3.7 Ghz BOX"; String req2="Procesador AMD Ryzen 5 2600X 4.2 Ghz"; What I want is to extract the part that says "3.7 Ghz" and "4.2 Ghz" in a string. T...
asked by 22.05.2018 / 00:13
4
answers

How to find two characters in a String

I have x number of students with their names and notes, all this I'm going through in a For, but of these students I need to show the number of names that start with A and end in S (I can not include arrangements, please go to the most basic)...
asked by 13.03.2018 / 04:05
1
answer

Reverse the bits of each byte of a string

I have a string byte generated by the Random module of the PyCrypto library in this way: c = Random.new().read(13) Now, I want to invert the value of the bits that make c with the unary operator ~ , but I can not do it because...
asked by 09.11.2017 / 15:39
1
answer

Text in bold and normal in an item of an array [duplicated]

good to all. I'm trying to implement an idea that may not be possible, since I can not find any information anywhere. I have an array with several items, my idea is that the strings of those items appear the first word of it in bold and the...
asked by 27.10.2017 / 22:58
1
answer

Put several variables in a text string

Very good, I have a variable called origin, where I want to save a text string with two variables. That variable happened to get to a page (2) using the load function. The problem is that when I make an alert of origin from the page (2), it s...
asked by 30.10.2017 / 17:35
1
answer

help codification zenith polar in c

I made a program in codeblocks which should code in polar zenith and although it identifies the characters and exchanges it generates a problem with the characters that are not exchanged transforming them into completely different characters...
asked by 02.11.2017 / 02:10
1
answer

Java - Place text between list values

I am using the StrSubtitutor to create parts of a document that will be previewed in a window with ckeditor. The question is that I need to use some lists of objects for some data and must have some texts in between, explain with an example:...
asked by 05.01.2018 / 17:54
1
answer

ObjectInputStream does not correctly display the object data

I want a program that reads a serialized file that contains the data of an object called "Comarca": on the one hand it has strings (comarq) and on the other ints (poblacio). The name of the file must be passed as a parameter (go, for the main ar...
asked by 27.09.2017 / 01:29
1
answer

Implement a class with a swift protocol

I am trying to implement a class that should give me the weather, I am asked for a string as a parameter and also a completion and that is exactly where I get lost on how to implement it. Try to call it using weatherDataWith to display...
asked by 25.08.2017 / 17:31
1
answer

Transform a string String into an HTML Table

I am creating a system where you build products and generate tables and budgets. You must implement a functionality to finish and if the user leaves the item's constructor but wants to return from another area of the website, for example, check...
asked by 31.07.2017 / 23:18