Questions tagged as 'string'

1
answer

separate chain for a spinner

I want to separate this string for a spinner. Here I receive my JSON I go through it to only get what I want. JSONObject jsonObject= new JSONObject(responseStrBuilder.toString()); JSONArray jsonArray = jsonObject.getJSONArray("payment_metho...
asked by 24.07.2018 / 18:17
1
answer

I need to fix the toast error R.string.error_notag R.string.ok_write R.string.ok_detected

package com.example.josue.project_nfc; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import java.io.IOException; import java.io.UnsupportedEncodingException; import android.nfc.FormatException; import android.n...
asked by 08.07.2018 / 20:24
1
answer

With what function do I find the position of a letter within a string?

I want to know in what position the letter "x" is located within the variable "equation" public static void main(String[] args) { /* Resolver una ecuacion de primer grado con 1 variable ejemplo: 2x-1=5x+8...
asked by 05.07.2018 / 04:13
1
answer

Casting problems when extracting information from a ComboBox

I have the following code to update data in a window according to the chosen parameter in the ComboBox. The problem is that it gives me a cast error "java.lang.String cannot be cast to rosales.Rosal" and I do not know exactly where the er...
asked by 26.05.2018 / 12:22
1
answer

Capitalize first letter a word [duplicated]

I want to capitalize the first letter of all the words in a phrase  EJ:    hello world And the expected response is:    Hello World I'm using java and I have not managed to generate a method that can do it.     
asked by 19.11.2017 / 19:25
2
answers

JAVA / SELENIUM ... Show only a section of my String

I'm working on Selenium and when I do the GetText message I get something like this:    String message = driver.findElement (By.Xpath ("IdMessage")). getText (); And in the message variable the following is captured: Mensaje aceptado co...
asked by 17.05.2018 / 17:36
1
answer

How to compare 2 chains in java but that 2 words of them are free

Good day and thank you very much for your answers in advance. I have to make a java program that allows me to compare 2 strings (a predefined and correct one) and another that the user will enter, the theme is that in that, say phrase, 2 word...
asked by 22.05.2018 / 17:16
0
answers

Print 2 strings in a box in emu8086

I have a code that does more or less what I need that is what I have been trying to edit so that I can put two strings in ved of only 3 digits, some solution? .model small .stack 200h .data line db '***********$' nl1 db 0ah,0dh,'* *' n...
asked by 08.05.2018 / 19:44
1
answer

Can a 'Raw String' be replaced by another once printed?

I have three raw strings: string wawe1 = R"( ^ ^ ^ ^ | ^ | | | | ^ | ^ | ^ | | | | | ^ | | | ^...
asked by 06.05.2018 / 01:43
1
answer

Java How to convert a String attribute to Nominal to classify in Weka?

Hello, I have a program written in java that performs the classification process using the library of weka 3.6 and predicts which class a new record belongs to when I add the data. The problem is that it only works when they are numeric data bec...
asked by 22.04.2018 / 08:23