All Questions

1
answer

what are the correct uses of contains; equals; e ==? to compare objects, Integers, Int, Strings ..?

what are the correct uses of contains; equals; e ==? to compare objects, Integers, Int, Strings ..? I know that sometimes they can be used the wrong way but I do not know well .. Thanks     
asked on 12.05.2018 / 17:14
2
answers

Problem with Java-interface

When I implement an interface in different classes I do not know how to access a variable of any of the classes public interface Enganchable { void enganchar(Enganchable E); void desenganchar(); } public class Locomotora implements E...
asked on 09.04.2018 / 11:16
1
answer

Android: How to use ImageButton?

I am something new in this of Android Studio, and now I want to put an Image Button but at the moment of coding it my App crashed when I try to compile in my cell phone. Any help? XML: <ImageButton android:id="@+id/telefono_ni...
asked on 28.04.2018 / 15:37
1
answer

Problems to read Text: Latin A with php

I have a problem with this script below the function it does is find the pads or # the Hashtag of a message the problem is that it does not recognize the text Latin A - UTF-8 , I want it to work but I do not know how to make the...
asked on 26.04.2018 / 05:11
2
answers

Icon for windows with TopLevel

Within a kind of application of the style of a Text Editor, I open the typical "Help" and "About" windows. Both windows are made using the Toplevel Tkinter widget. And I would like to put an icon that appeared in the taskbar as I have done fo...
asked on 21.05.2018 / 00:32
5
answers

Question for connoisseurs of Java and Visual Studio

Recently I'm starting to work with Java; I really have more experience with Visual Studio. So, since the environments are different, I'd like to know what the Java equivalences are: Desktop applications With Visual Studio I use WinForms...
asked on 09.08.2016 / 23:18
5
answers

Difference between finish () and onBackPressed ()

Well, as the title indicates, what is the difference between the method finish() and onBackPressed() ?     
asked on 28.10.2016 / 13:22
3
answers

String.split () to separate in spaces, but without replacing spaces

I have a String like the following: String foo = "soy un texto" When applying the following function: String [] bar = foo. split(" "); He separates it into three texts: "soy", "un" y "texto" However, I want to keep the space...
asked on 18.01.2017 / 19:24
4
answers

get the first 3 words of a sentence in PHP

I have a question about how to get the first 2 or 3 words of a sentence. For example: Example_1: $text_1 = "Chaleco azul con tejido algodón"; Resultado=> Chaleco azul Example_2: $text_2 = "Lampara de lectura para la cama"; Resultado...
asked on 15.02.2018 / 13:17
4
answers

Ratings from 0 to 100

   Make a program in c ++ that asks me for a qualification and validates that it is valid between 0 and 100,   Once it is valid if it is greater than or equal to 70 it is approved, if it is less than 70 it is rejected, but if it is 0, it repeats...
asked on 20.07.2017 / 16:39