I need to save last api results in my app if the user open the app without network connection , then he will see last data fethed from the server , i need to fetch json as string and parse json to objects from string by using retrofit library in android studio
I am a beginner programmer trying to learn how to better organize my code. I simplified my program here to show my question. Essentially the concept is this, Class 1 holds an HashMap of locations. Class 2 is an object which has a Location. Class 1 is telling Class 2 to do an action. Class … Continue reading “Best practice basic Object Oriented Code Java”
Cheers! I’m currently “migrating” from Oracle JDK 8 (completely uninstalled) to Azul Zulu JDK 8 with JFX (zulu22.214.171.124-ca-fx-jdk8.0.222-win_x64). I’ve set up the Path & JAVA_HOME variable, working with Eclipse and running my program works fine there. Now, when I’m trying to use my with Eclipse already created Executable JAR (or even if I’m creating a … Continue reading “JDK 8 (Zulu) – “Error: Could not find or load main class” – Executable JAR”
I have two Key Frames operating at different speeds. One oscillates a rectangle vertically. The other oscillates a rectangle horizontally. When the rectangles first intersect I want to slow the vertical oscillate and print a time stamp. The program works. How do I determine intersection of rectangles? The ultimate goal is self regulating oscillation. package … Continue reading “Javafx – Two KeyFrames operating at different speeds – determine intersection”
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
I am a student trying to learn jbpm. Teacher wont help me, so this is my only hope. I have installed java 13. Server starts, but with some errors. after i type “http://localhost:8080/business-central” i get a error 404. Here is only the error (last) part of the log since the whole thing has more than … Continue reading “Cannot start jbpm on http://localhost:8080/business-central”
I am working on an application which needs data communication between Android phone and Camera. Android phone and camera connected via usb. I can read and write data first time with bulkTransfer(),but cannot read or write next time. I am getting negative 1 when I try to send data second time. I also tried with … Continue reading “usbdeviceconnection bulktransfer is negative 1 for second time data transfer”