Questions tagged as 'java'

1
answer

Eclipse Oxygen can not be opened using Java 9

On September 21, 2017, Java 9 officially appeared. I want to try what new Java offers, mainly that acclaimed system of modules. I just installed Oracle JDK 9 on my computer and Eclipse Oxygen that has a plugin to support the development in Java...
asked by 22.09.2017 / 08:36
1
answer

How to distribute a .jar on mac using .dmg with Drag & Drop?

I need to convert a .jar into .app that includes JRE inside to be able to distribute in MacOS Sierra as a file .dmg with Drag & Drop without the need to install JDK or JRE (that already comes...
asked by 12.09.2017 / 20:34
1
answer

Run Backtracking algorithm

First of all, during all this time ago I have been using this model to solve my problems with backtracking. It's a backtraking model made by my university link . private void bt() { if(estado.isFinal()){...
asked by 30.05.2017 / 15:09
3
answers

Error in for loop: "incompatible types: int can not be converted to boolean"

I am new to StackOverflow and also programming in Java. I am going through exercises that I did in pseudocodigo to Java, and I find an error that I can not solve in the for loop. The idea of the exercise is to create a vector that contains fr...
asked by 12.06.2017 / 22:40
1
answer

Doubt with decimals Android (BigDecimal)

When I make an account to get the % of a number, I have a problem, I explain: I take 5% out of 7.74 and it's 0.3870 but I want you to only show me two numbers in the decimal part, that is < strong> 0.38 How can I do this? And anoth...
asked by 19.05.2017 / 15:59
1
answer

Problem when showing photo in an imageview

I am developing an application where I have an option to capture a photo with the camera and upload it to my server. Well I told you the following, the application worked very well, I could take the photo and upload it to my server, but I rea...
asked by 17.05.2017 / 17:07
2
answers

Capicua java character string

I am trying to make a program that says if the introduced phrase or word is capicua, that is to say holaloh. What I do is two for, which starts to run from the beginning and the other from the end, and then save them with the charAt and the posi...
asked by 22.01.2017 / 16:38
4
answers

Print a java matrix

I'm trying to print a matrix diagonally, that is, the one in 1 2 3 4 5 6 7 8 9 print 1 2 4 3 5 7 6 8 9 I have this, in which I only print up to 7 because if it does not leave the matrix: public class matriz { public static void main(St...
asked by 24.01.2017 / 17:51
2
answers

How to embed app nodejs in java application

There is an application developed in spring and angularjs, the problem is that they want to make an app in nodejs and be able to embed it within the java application, I mean Something like pressing a button, and look at your node app, suppose...
asked by 25.02.2017 / 17:10
1
answer

Detect if the Android Wear screen is square, circular or fringed

How can you detect what kind of screen the smartwatch has on Android Wear of the three existing types? Rectangular square Circular round Circular with lower strip (Moto360) chin     
asked by 25.11.2016 / 09:42