Questions tagged as 'string'

1
answer

Copy content from a Jtable to a File.txt

I am entering data at a jTable and through a jButton , I want to copy the information from the rows of jTable into a text file. public NuevaVenta() { initComponents(); Date fecha = new Date(); //fecha y hora actual...
asked by 07.03.2016 / 23:55
1
answer

Avoid repeated names in c ++ arrangement

As part of my subject of data structure we have left the following exercise:    Create a data structure that allows to store the data of the total purchases of customers from a warehouse.   You want to store the following information: Number...
asked by 03.09.2017 / 07:26
1
answer

How can I invert a string to check that it is palindrome with python?

Hello in advance I want to know how to invert a string to check that it is palindrome. Greetings. it occurred to me to do a for cycle and then each iteration to insert it in a list     
asked by 29.09.2017 / 00:56
1
answer

java.lang.String to type developerjr.evertmoreno.ime.Friends

When I try to switch to the Friends Tap, I close the App and it tells me that the error is for a String in the Friend class but I do not see what the error could be .. 08-17 17:17:03.521 18367-18367/developerjr.evertmoreno.ime E/AndroidRuntime...
asked by 18.08.2017 / 00:33
1
answer

How can I compare a String-array

else if (pregunta1.getItemAtPosition(position).equals("2.-Coloque la el comando para entrar a la terminal de PowerShell")){ AlertDialog.Builder ad=new AlertDialog.Builder(Matematicas.this); ad.setTitle("Indique la respuest...
asked by 19.11.2018 / 00:00
1
answer

Go from String to Float (Read well) [closed]

Good friends, I need to pass a string string to float in JAVA . The problem is that in the end, each string ends with units (volt,%, cm, m .. etc) example: Convert the String "0.22V" to float : 0.22 Thank you very much! PS: All the...
asked by 13.08.2017 / 18:53
4
answers

Find matches between JAVA Strings

I have a project in which I have to find character matches between 3 different Strings of 4 characters, for example: String cadena1 = "aaattkggl" String cadena2 = "rrattkmmt" String cadena3 = "wwattkkllg" As you can see between the 3 string...
asked by 31.03.2017 / 04:45
2
answers

I get the salary but not the name of the two employees

The exercise consists of making an employee-type structure that contains: namemployed sex salary and take out on the screen the name of the two employees with the highest and lowest salary. The output must be:    How many employ...
asked by 11.04.2018 / 12:57
1
answer

Obtain dominance of a URL vb.net [closed]

Well I have this problem, I have a url (String): https://www.linkedin.com/?trk=msn-top-ve and I want to get the domain that is: www.linkedin.com I also want to get the domain for the URLs that are: link etc .. I only want the...
asked by 18.11.2018 / 22:45
1
answer

Class String in java? [closed]

Hello friends, I'm studying java and I saw that in java there is no primitive data type "String" but there is a "String class" because? , which is a type of data referenced to an object but my other question is because they say it is a class and...
asked by 01.02.2017 / 01:15