Questions tagged as 'java'

1
answer

How to know which object is the one on the list [closed]

Friends have an application that contains a class Animals from which the mammal class inherits with its attributes and from this inherit two carnivorous and herbivorous classes. Now in a zoo class I have a list of animals which will store two ty...
asked by 03.05.2017 / 15:43
2
answers

NETBEANS 8.2 error when uninstalling

I'm trying to uninstall netbeans, since I can not get it started, and I wanted to make a new clean installation, but I do not get it, it generates the following error. # # A fatal error has been detected by the Java Runtime Environment: # # E...
asked by 25.04.2017 / 22:29
2
answers

JPanel with setvisible = true is not displayed when I call it from the Main ()

I'm making a graphical interface to a program that I have. It asks for several data to the user, he / she fills them, and with that data uses a function that registers the data in a file. I have no problem to see how the JPanel is from the Desig...
asked by 22.04.2017 / 09:56
1
answer

Netbeans allows you to open a project or attach a .jar driver

I am faced with a serious problem and that is that netbeans starts me and allows me to create projects, but when I open the project or open the file, it closes immediately and does not let me choose the route. Also when trying to attach the o...
asked by 21.04.2017 / 16:24
2
answers

Store data in list and make accounts with them without database

I have a Recyclerview that shows a list of foods, each row of the recyclerview has 2 buttons, one for quantity of the food and the other to decrease the quantity of the food, graphically there is something like this: Coca-Cola Price: 10.00 -...
asked by 21.04.2017 / 13:48
1
answer

Parsear csv with problematic quotes

I have to read the following csv: ,codigo,nom,cognom ,111,michael,salinas ,222,"luis","doh, \”jik" ,333,ram,"Lak""\""""\""""\"" , ""\""“one" It is supposed to be 4 columns, but I have problems with the last row, to read the csv I am using a...
asked by 27.04.2017 / 16:44
1
answer

Error when trying to obtain records in a specific order

I'm trying to get the records in a specific order (the order of the calendar) based on an attribute called month using jpa, but I throw an exception and I do not understand why. This is my function: @Query("SELECT P FROM Periodo P WHERE P.l...
asked by 26.04.2017 / 21:09
1
answer

Start Splash but after the app is closed

Splash public class Splash extends AppCompatActivity { // Set the duration of the splash screen private static final long SPLASH_SCREEN_DELAY = 3000; @Override protected void onCreate(Bundle savedInstanceState) {...
asked by 09.04.2017 / 19:33
1
answer

Convert CocktailSort algorithm from Java to C ++

public class CocktailSort { public static int izquierda, derecha, ultimo; public static int arreglo[] = {10, 23, 6, 4, 223, 2, 112, 3, 6, 34}; public static void main(String[] args) { izquierda = 1; derecha = arregl...
asked by 09.04.2017 / 05:10
1
answer

Perform Audio Fade effect in / out on the Audio channel on Android

I use the AudioManager.setStreamMute(..,true/false) function to make mute or unmute to the Audio channel. Obviously cut the sound of blow, I would like the cut was not so abrupt, but before silencing is going down the volume...
asked by 17.05.2017 / 11:20