All Questions

2
answers

In java, use a different class depending on the operating system

I have a system that works in multi-platform, and to be able to design it I need to know how I could run a class depending on the operating system. I have created the following simple function Public Boolean esandroid(){....} where if...
asked on 01.02.2018 / 14:47
1
answer

How to correctly use SHORTHAND with the BACKGROUND property?

I tried to optimize my CSS code by using shorthand , specifically with the property background , the problem is when I want to incorporate the property background-size in the shorthand . Please, I would appreciate your help, since I was search...
asked on 15.01.2018 / 17:58
3
answers

How to enter - between characters of a string in JavaScript?

Having the following string: var cadena = "Hola que tal estas"; I wanted to know how it can be shown separated by dashes, that is: var cadena = "H-o-l-a-q-u-e-t-a-l-e-s-t-a-s     
asked on 21.10.2017 / 21:30
1
answer

divide chain separated by a comma and validate if it is the same

this is the code I have variable that I bring from the database $ profile ['image']; < --- in this variable I can bring several options for example: presentable,aseado presentable,aseado,De traje Presentable,aseado,uniforme so if for...
asked on 02.02.2018 / 18:26
2
answers

N Promises angular

I have on my controller: $scope.test= function () { var list = ["var0","var1","var2","var3"]; var result= 0; for (var x=0;x<list.length;x++) { result= result + TestService.loadVariable(list[x]) } $scope.resu...
asked on 18.10.2017 / 17:08
2
answers

Android Fill in with decimals

I have a report where I show certain numerical values that come to me from a service x, My problem in particular is that if the number is 5.10 the service sends me 5.1 If I send 5.00 the service brings me 5 But if I send 5.23 if I ge...
asked on 16.01.2018 / 19:40
1
answer

Change word when I click

How can I hide the word volver and show it when the div that has the class collapse is opened and the word search is hidden, that is, when the div makes collapse , "this open " show the word return if it i...
asked on 03.11.2017 / 15:02
2
answers

how do I eliminate the last character of an impression made by FOR in java?

I have: for(i=0; i<vector.length; i++) { System.out.print(Integer.toString(vector[i]) + " < "); } Example: The exit would be    1 < 2 < 3 < 4 < This last sign I would like to eliminate from printing, try substring...
asked on 29.10.2017 / 05:07
4
answers

Convert Date () to String

I want to convert the type Long that returns new Date().getTimeInMillis() to String The following code does not work, generates a time different from my time zone private String formatDate(Long fechaInTypeLong) { Da...
asked on 02.11.2017 / 03:31
2
answers

I need help with an elseif

I need help for this else if that does not register it well, I want to register an image in a modal but the one that validates it gives me error no sée if you need something special to validate it correctly because it gives me an error as...
asked on 28.09.2017 / 16:50