Questions tagged as 'cast'

1
answer

SQL Switch assigning value to a variable

I need to go through a whole table and depending on its content insert that data somewhere else that I imagine I could use a switch , but I have problems to reference it to the variable I want. I need to recognize the value of [Charge / Credit]...
asked by 22.08.2018 / 19:46
1
answer

Byte Cast [] to String and from String to Bytes

I explain, I have a query in SQL that returns me sometimes Int's and sometimes Doubles +--------+-----------+ | Algo | Resultado | +--------+-----------+ | Algo1 | 521 | +--------+-----------+ | Algo2 | 5.12 | +--------+--------...
asked by 09.03.2018 / 13:58
2
answers

Explanation of the Cast for what it is, and when to use it?

Hello, I have this part of the code in one method public lugar getlugar(int x){ lugar l2=(lugar)lugares.get(x); return l2; } I want you to do me the favor of explaining me about the cast because I can not understand it. This is...
asked by 28.02.2018 / 17:03
1
answer

Convert from JPG to TIFF in Android (Java)

As the title says, I wonder if someone has converted a bitmap or JPG to TIFF in android. Thank you in advance. Greetings.     
asked by 09.11.2016 / 18:21
2
answers

Android Studio - Convert a String field to Date

Good morning, I am using a String field called "fecha_ini" and it contains a date in the following format "01-02-2018". What I need is to add one day to this date, but for that first I have to cast it from String to Date if I'm not mistaken. To...
asked by 29.11.2018 / 15:19
1
answer

Convert from int to char in C

My question is about how to convert from int to char in C language. It's the equivalent to doing in C #: int a = 97; char b = (char)a; Console.WriteLine(b);     
asked by 09.10.2018 / 23:43
3
answers

At the time of executing a NamedQuery it returns data type object [] instead of Java Class type

I have a NamedQuery that only brings certain columns, the problem is that in my method public List<T> NewEncontarSqlArmado(Map parametros, Asignaturas asignatura) throws ConsultarException { try { Iterator it = parametros.ent...
asked by 29.09.2017 / 18:05
1
answer

Unable to convert String to Double

I have a JTable where I load the data that I have in my BD, based on those records I make a simple operation, the data I enter and with which I do the operation I declared them as Double , at the moment to save the new data without...
asked by 25.08.2017 / 15:08
1
answer

Android Studio - Error trying to show value in the Toast

I'm wanting to show an int value that I cast from a string in a Toast but it gives me an error that I do not understand. When I perform these steps, the following error is thrown by the Logcat: Process: com.example.rodrigo.libros, PID: 182...
asked by 20.12.2018 / 07:07
0
answers

Is it possible to send the streaming of the webRTC licode to a TV with Chromecast?

I'm working with Licode and the video call is going well. Now I would like to be able to transmit the video call to my tv with the help of a Chromecast. Something like what youtube does for example, where the transmit icon appears and when press...
asked by 24.07.2018 / 20:05