Questions tagged as 'java'

1
answer

Load files while scrolling in a Recycler View with retrofit

I am new to the community and I have a problem, I want to implement the Endless Scroll or Infinite Scroll as some call it in a recycler view to load items, since I currently show the 11500 results in recycler view , this same wi...
asked by 08.05.2018 / 22:42
2
answers

pass value from a java class to a jsp

I would like to know how I can pass the value of a variable from a java class to a jsp. public void ValidateUser (String user, String password, HttpServletRequest request) { try { Connection conexion=null; PreparedStatem...
asked by 21.05.2018 / 11:43
1
answer

Problem with area.addText (char ...) JAVA

I try to read a file from java, and add it to a JTextArea: if (e.getSource() == go) { try { String strA = field1.getText(); FileReader archr1 = new FileReader(strA); int valor = archr1.read();...
asked by 21.05.2018 / 10:09
1
answer

I do not understand very well what Android Studio refers to with this

I have a Frame layout, and I wanted to put an OnTouchListener, it works correctly but I do not understand why I get this notice. Thank you.     
asked by 11.05.2018 / 15:35
1
answer

Return hash string by number

I have built a hash program that when passing a string returns a coded number, now I would like a function that would do the opposite of the same formula that we did when coding that is to say that we pass a number and show its corresponding str...
asked by 09.05.2018 / 23:38
1
answer

I receive errors when compiling error: can not find symbol method setBatchPath (String)

Errors are seen in these files Accounts.java 2 errors error: method does not override or implement a method from a supertype @Override public Builder setBatchPath(String batchPath) { return (Builder) super.setBatchPath(batchPath); } erro...
asked by 28.04.2018 / 15:14
1
answer

How to enter a sql query in java, replacing hard code of a map?

I hope and they are well, I have a problem, what I need is to replace the hard code of a java map, for the results that an sql query returns to me, the hard code is this: { this.correspondencia=new HashMap<String, String>();...
asked by 26.04.2018 / 14:55
1
answer

How to display data from a query by specifying the records in java [closed]

What I want is that when you select the client of the table you will be shown all the purchases made by that client in a table and that when you search for a date, for example, only the records of that client appear and not of all     
asked by 26.04.2018 / 19:26
1
answer

"invokeLater (Runnable obj)" - doubt

Although I have already designed some applications in Java I am following a language manual to establish the base of this language. I have reached the SWING part. In the manual they create an example class in which an object of type JFrame is...
asked by 26.04.2018 / 14:30
1
answer

Run a service every certain amount of time

My query is as follows. I am trying to perform a service that shows a message in the LogCat every 1 minute for example. I was reading a bit about this but I think I need a hand. The services always work when the phone is with the screen off / or...
asked by 29.04.2018 / 17:47