Questions tagged as 'java'

2
answers

Generate Ireport in a documentViewer Primefaces

I need to know how I can generate an ireport report in a variable StreamedContent . The report is in a package in the project. The difficulty I have is that I can not get the route of the project. At the moment I have this portion of code:...
asked by 30.11.2016 / 14:16
1
answer

Ackerman's function

hello I have a problem entering the "m" in the function of ackerman, with the "n" everything is fine, however, entering the value of "m" as a number equal to or greater than 5 marks me error package ackerman; import java.util.Scanner; import j...
asked by 02.12.2016 / 01:38
2
answers

Add number at the end of another number without adding - JAVA

I must do a method that allows you to add a number to the end of another number without adding it. For example, I have 15253 and 99, I must add that 99 at the end of 15253, without adding it, that is, it should be 1525399.     
asked by 24.05.2018 / 18:24
2
answers

Pass Java project to exe [closed]

I need to know if it is possible to pass a Java project to an .exe, the IDE that I use is Intel J Idea. I have two .java files right now: the Main and a class called 'student' that I created. Thanks.     
asked by 16.08.2018 / 00:31
1
answer

I do not enter the IF [duplicated]

Good I have a jsp that passes data to my servlet with ajax. This is my Script $(document).ready(function() { var dni = "00000r"; $.post('actionServlet', { }, function(responseText) { num: "1" $('#datos').html(resp...
asked by 08.08.2018 / 10:56
2
answers

Problem with encoding using websphere

Well, the fact is that in my html header I have the tags: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <META http-equiv="Content-Type" content="text/html; charset=ISO-885...
asked by 29.07.2016 / 10:29
3
answers

Cleaning indexes in Google Datastore

I have an application in
asked by 14.06.2016 / 04:39
3
answers

On different interpretations of the for cycle

How to read the for cycle of the code? I guess it reads like this: For each digit of type char read it and convert it to an array of characters or maybe like this: For each digit of type char read it and add it to an array of chara...
asked by 28.08.2017 / 02:53
1
answer

Fill a ["[]" two-dimensional array "from a text file with elements separated by commas and lines

Well as the title says. I have a .txt with things like: . [Without the quotes] It is a list of 4 elements per row, and 150 rows. I imagine adding it to an array or arrayList, but I do not know how to read the .txt to go adding eac...
asked by 13.09.2017 / 05:08
2
answers

FOR expression does not recognize Object Array

In a login system with graphical interface I created a Class User whose attributes are (String user, String pass), then in the Mail (main) I hardcode an array of users (listUser []) with 3 users with their respective passwords . When raising...
asked by 19.08.2017 / 19:45