Questions tagged as 'java'

1
answer

How to play audio files in Exoplayer

Good morning. I used the Media Player class that has android but it throws some errors when playing some types of files so try Exoplayer, but the little documentation that I have seen have not helped me much I have seen videos and I have even...
asked by 09.12.2017 / 23:12
1
answer

Cursive or bold type by console

Good morning, everyone. I've been looking for how to text a number and I have not found anything clear. The idea was to find the largest and smallest value of the matrix and after finding them, give it the bold format. int mayor = matriz[0]...
asked by 27.01.2018 / 14:07
1
answer

Best way to get Enum from its entire ID value in Java

A cordial greeting. I have an ENUM in the following way public enum EnumNumeros { UNO(1), DOS(2), TRES(3); private int id; private EnumNumeros(int id) { this.id = id; } public int getId() {...
asked by 26.01.2018 / 17:06
1
answer

Put subitem in a listview

Hi, I'd like to put a subitem in my listview but I can not get it. This is my activity_list <?xml version="1.0" encoding="utf-8"?> <ListView android:id="@+id/lista" android:layout_width="match_parent" android:layout_h...
asked by 06.12.2017 / 00:41
2
answers

read all the data of an excel document

I would like to know how I can read all the data of an excel document in java I did an algorithm but when I read a value of type int the program ends. package com.veliz; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermo...
asked by 25.11.2017 / 21:38
1
answer

Modify method to return a string?

Good, Veran I have this code private static void Perm2(String[] elem, String act, int n, int r) { if (n == 0) { System.out.println(act); } else { for (int i = 0; i < r; i++) { if (!act.contains(elem[i]))...
asked by 04.12.2017 / 07:07
1
answer

How to start ZooKeeper Command Line Interface?

I want to implement an hbase database and I have seen that I need ZooKeeper. I followed tutorialspoint.com tutorial but when I try to start ZooKeeper Command Line Interface (CLI) I got the following error: mike@mike-thinks:~/zookeeper-3.4.10...
asked by 04.12.2017 / 12:09
1
answer

Error conversion String-Integer in Java

I have a problem in java and I would greatly appreciate your help. I am developing a project in which we are working with several colleagues, we also use functionality that comes from outside. The fact is that I have to make the step from Str...
asked by 27.11.2017 / 17:40
1
answer

Show colors of an array in JavaFx

I have this little program in JavaFx that goes through the image and shows me all the colors it has, in the table next I show the color code, but I want to show the visible color and not the code and I wanted to know how I could fill each cel...
asked by 02.12.2017 / 02:37
1
answer

How can I implement this pseudocode in java?

Good day for everyone I hope you are very well. My question is this, I am trying to implement this pseudocodigo in java programming language: But the truth is I'm very new to issues of using recursion, I've tried in many ways but I r...
asked by 30.11.2017 / 13:48