Questions tagged as 'java'

1
answer

Java programming for cards [closed]

Hello, I have a KDE KT-2280 magnetic card reader and this reader is programmable. But I do not know how to program cards, because I never got into card programming. Is there a Java library to program cards? Can you help me, please? Thanks...
asked by 07.03.2017 / 16:36
1
answer

How to implement different clicks for each item in RecyclerView?

I'm developing an app, and it has recyclerView in conjunction with CardView . And all information is stored inside the app itself to be displayed in recyclerView . A part of the structure is this: Album a = new Album("True R...
asked by 10.02.2017 / 00:53
1
answer

Error Spring MVC Rest Full

Good evening, I'm trying to compile a code to run a simple rest in spring mvc, but I encountered the error "The request sent by the client was syntactically incorrect." Class Controller package br.com.aprendendorest.controllers; import...
asked by 07.03.2017 / 01:43
1
answer

Dagger 2 does not generate components

When I try to give build to my project the following error occurs:    Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/Str...
asked by 29.01.2017 / 12:19
1
answer

retrieve item position in listview

When the person clicks on item A in the categoria fragment I would need to take to an activity. And when I click on item B to take to another activity, so I can make the filters. Here the class of the items: public class Itens {...
asked by 02.02.2017 / 03:06
2
answers

Removing replaceAll ("[() .- \"] ")

I'm using openJDK1.7 , I'm in need of help. String[] vetor = {"\"Jui.ce \"", "j-90.0", "Abobr.e-u"}; for(int = 0; i < vetor.length; i++) vetor[i].replaceAll("[()-.\"]", ""); The above code among others is not giving a problem b...
asked by 26.01.2017 / 23:24
1
answer

How do I work with LONG "data" inserted in an editText?

I tried to pass numbers that would be inserted into 3 editTexts for 3 long variables I created: l01, l02, l03 . In order to work them out and make a very simple account. MainActivity.java: package genesysgeneration.treerule; import...
asked by 26.01.2017 / 01:06
1
answer

Is it possible to inject a bean into a singleton with enum?

We have a system that uses Struts 1 and singletons based on enums. Now we have a dependency that was written using Spring 4.3.6.RELEASE which should only be used with other systems that also use Spring, so all declared Spring dependencies hav...
asked by 04.03.2017 / 03:23
1
answer

Error accessing local variable in anonymous class

For some reason netbeans asks to change the variable i to FINAL, but if so, I will not be able to edit it. The following is the error:    Error: local variable is accessed from within inner class; needs to be declared final The...
asked by 05.03.2017 / 04:11
1
answer

How to format font and text size on a thermal printer using Java

Well, I'm developing a program for a pizzeria and I need to print the orders with their respective pizza flavors, but with correct formatting, bigger letters and such, the default is too small for my needs, follow the code I'm using import jav...
asked by 08.02.2017 / 15:23