Questions tagged as 'java'

0
answers

WHAT IS THE DIFFERENCE OF USING JRIP WITH PRUNING AND WITHOUT PRUNING

I need help with the difference between pruning and pruning with respect to the Jrip classifier please to be able to interpret weka or knime data     
asked by 29.12.2018 / 18:23
1
answer

error: The type java.lang.Integer should be defined by @Model annotation

I did a project using Dukescript in netbeans with the following code: package com.dukescript.games.codermasters.puzzlelogic; //import net.java.html.json.ComputedProperty; import net.java.html.json.Function; import net.java.html.json.Model; im...
asked by 01.01.2016 / 11:00
1
answer

Print a matrix leaving space between the values

I want to print a matrix and I want to leave spaces between the values shown public class AH2 { public static void main(String[] args) { // TODO Auto-generated method stub // Declaramos un array de dos dimensiones con un tamaño de 3...
asked by 25.02.2018 / 00:45
1
answer

Block of projects in netbeans (centos7)

I have centos installed 7 to install netbeans and I installed everything well but when I enter netbeans I get blocked projects example: serie_fibonacci (broken). someone knows why     
asked by 18.12.2017 / 15:47
1
answer

Doubt while JAVA [duplicate]

Why, if I enter 4.95, does he return the 5 centimos and if I enter 1.95, he does not return it to me? package ejer30; import java.util.Scanner; public class Expendedora { private double dinero; private static Scanner sc = new Scanne...
asked by 14.11.2017 / 18:27
1
answer

Class String in java? [closed]

Hello friends, I'm studying java and I saw that in java there is no primitive data type "String" but there is a "String class" because? , which is a type of data referenced to an object but my other question is because they say it is a class and...
asked by 01.02.2017 / 00:15
2
answers

add several objects in JAVA

Thank you very much in advance. How do I do the sum of several objects? For example: Ventas producto1 = new Ventas("Leche",14000); Ventas producto2 = new Ventas("calaos",800); Ventas producto3 = new Ventas("Salchichas",2800);...
asked by 03.11.2018 / 00:44
1
answer

Postorder and binary tree inorder without recursion - JAVA [closed]

Is there any way to make an inorder and bidder path of a binary tree without using recursion?     
asked by 12.12.2018 / 23:38
1
answer

Can you help me with the method to make the array eliminate the repeated numbers? [closed]

public static double[] exercici2(double[] a) { for (int i = 0; i < a.length; i++) { double num = a[i]; for (int j = i+1; j < a.length; j++) { if (num != a[j]) { a[i] =a[j]; }...
asked by 11.04.2018 / 15:46
1
answer

Sort and join equivalent of JS to Java

I know the question is probably very early but they would help me a lot by telling me equivalents of those priorities or methods (I really do not know what they are) in java, thanks.     
asked by 26.08.2018 / 21:48