Tagged Questions
Java (not to be confused with JavaScript or JScript) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. ...
0
votes
0answers
5 views
How to get data into a database using PHP and android studio (server 00webhost)?
I've created a database using 000webhost, and uploaded my php files to there server. Using android studio, I'm attempting to create a user register page. I click to go to the register page, type in ...
-1
votes
0answers
10 views
Regex - Compare strings (ignoring a UUID)
I apologize in advance, I am not super experienced with regex.
I am trying to write a JUnit that asserts two pieces of data are mostly the same. That is, I have something like the following:
...
1
vote
0answers
3 views
Understanding how spring-data handles @EntityGraph
(I made a SSCCE for this question.)
I have 2 simple entities : Employee and Company. Employee has a @ManyToOne relationship with Company with default fetch strategy (eager).
I want to be able to ...
-1
votes
0answers
8 views
How to modify my program so that the game consists of 10 “rounds”.
Modify the program so that the game consists of 10 “rounds”. After the 10 rounds, the program prints how many of the 10 rounds were won and how many were lost.
Also, the program must rate the user ...
0
votes
0answers
3 views
Spring - Cannot inject Conversation on CDI @Named Bean with @ConversationScoped
I have a Spring application that uses JSF 2 as front-end framework.
We are using CDI @Named Bean as Managed bean. One problem is when trying to do a Conversation scoped Managed Bean. Spring tries to ...
-1
votes
0answers
5 views
Android Studio:Cannot resolve R
very new to android studio.I have got the error cannot resolve R even after reopening my project. I was in the process of creating a listview layout. it worked fine but then every R got a cannot ...
0
votes
2answers
18 views
How do i stop a user from entering a String in this read() method?
// My read() methods crash each time i enter a String or Char. How would i get it to accept only integer values. When i enter an int, it works fine but when i enter a Char or String i get a repetitive ...
0
votes
0answers
6 views
Unexpected crash on AlertDialog after menu
I'm experiencing an unexpected crash of my app few seconds after an AlertDialog appears, before I can even select an option. Do you have any idea on what the problem could be?
I have a ListView with ...
-1
votes
0answers
4 views
Making async glReadPixels with LibGDX
I'm a bit lost here. I made simulation running on GPU using shaders, but I'd need some harsh data back to CPU as well. I found way to retrieve it using glReadPixels, but it makes 7-12ms bottleneck to ...
0
votes
0answers
6 views
ANTLR runtime or not ?
I'm trying to use Dresden OCL and it involves the use of many other jars.
Between others inclusions in the CLASSPATH, there is one I can't fix :
Exception in thread "main" java.lang....
0
votes
0answers
5 views
Overridable method call in constructor in Codename One Demo example
I've based my main form application on https://github.com/codenameone/MaterialScreensUIKit/blob/master/src/com/codename1/uikit/materialscreens/LoginForm.java demo example from Codename One, since I ...
0
votes
0answers
8 views
spring cloud auto configuration for different feign clients
I am working on a project which is an API client based on netflix feign library with spring cloud integration.
Basically, I have the following interface implemented by rest controller and feign ...
0
votes
0answers
12 views
Joda Time causing error when run through a jar
So I have a program that is using Joda-Time
that works perfectly fine when run through Eclipse. However when I export it as a .jar, the program doesn't run at all. When I ran the program through ...
0
votes
1answer
19 views
java code to Divides number and show the reminder and quotient
I hope this thread isnt against the rules
my problem is
im using macos and i couldnt find a calculator that Divides number and show the reminder and quotient
so i thought there might be a java code ...
0
votes
0answers
35 views
Tic Tac Toe Loop/Method running too many times
I'm working on a Tic Tac Toe game and I think I got it to only one problem left. I got it to work perfect, but then I messed with it to try and make the messages appear on the actual game instead of ...
-4
votes
0answers
20 views
JAVA - how do I count occurrence of a char in a row in a string? [on hold]
I have a String,
ABAABAAABBB
I need to count the occurrence of a char (lets use A) in a row starting at a position (lets use 5), at that point we have AAA and I want the result 3.
If possible ...
-2
votes
1answer
22 views
specific Knapsack Algorithm [duplicate]
I have problem with solve the specific knapsack algorithm problem. Is there someone who give me some tips or help me? I solved it by Brute Force method but the execute time is very long (I checked all ...
-4
votes
0answers
16 views
add a big integer to a big decimal and convert it to a string
I was making a calculator and I was using double but it gave slight errors in the answer so was thinking maybe you could take a number split its decimal from the whole numbers make the hole numbers a ...
0
votes
0answers
5 views
Hazelcast 3.6 to 3.7 upgrade
I'm about to perform an upgrade of hazelcast from version 3.6.x to 3.7.x. on documentation I can see that it should be a full cluster shutdown deployment with a maintenance window.
On test ...
0
votes
0answers
6 views
How to make JPA create tables using JAVA SE and Tomcat?
Im creating a simple Java SE application but I have a problem configuring JPA with Tomcat 8.0.38. Is it possible to automatically generate the schema using these technologies?
This is my persistence....
0
votes
1answer
28 views
Java - Invalid File path
My application throws exception - java.io.FileNotFoundException: Invalid file path. Not sure why. 'message' variable is a string that contains the name of my sub folder, which is inside '...
-3
votes
0answers
5 views
How to start programming Java in XOA Samsung?
I need to know how to start to develop APP for Samsung MFP with the XOA system. Any initial information on where to start will be welcome.
0
votes
1answer
19 views
import java.util.Scanner; interfering with Generate JavaDoc command in Eclipse
So...as the title says...my Java project is having trouble generating a JavaDoc document when the import java.util.Scanner; statement is not marked as a comment in code and it is needed for the input ...
0
votes
1answer
29 views
Error:java.lang.OutOfMemoryError: GC overhead limit exceeded
Good Day, I can't build my project, there was and error like: "The number of method references in a .dex file cannot exceed 64k"
and I have tried to implement MultiDex enabled, but there is another ...
0
votes
0answers
9 views
Where does @executable_path point to in a Java program
I'm trying to load a native library in Java on Mac OS X 10.10.5 like this:
System.loadLibrary("SgCore_wrap");
and it throws an exception:
Exception in thread "main" java.lang....
1
vote
1answer
31 views
Gson to parse string of arrays
I need to parse the below JSON content. Currently I have stored it inflat file and reading it. I have given the sample POJO classes which are created and the code which I tried below.
Tried two ...
0
votes
0answers
8 views
How to configure querydsl in spring boot 1.4.1?
Im trying to enable querydsl using spring-data-jpa for a project, however Im getting some compilation errors like:
The type com.querydsl.core.types.Predicate cannot be resolved. It is indirectly ...
0
votes
0answers
14 views
Graphics lags when painting to screen [duplicate]
I am loosely following this persons code to make a pong game
However, when I run the program, the screen will either, 1. turn plain white, 2. Turn white and then paint to the screen a couple seconds ...
0
votes
1answer
13 views
clojure convert oracle time stamp to long
in clojure I have an object returned from a sql.
object[oracle.sql.TIMESTAMP 0x68c8a61a 2016-10-27 14:36:33.0]
I want to convert it to long. I tried to use .getTime but get error ...
-4
votes
0answers
40 views
Why does this method return Object[] instead of intended String[][]?
I get a message saying that the required and found types are in compatible and I could not figure out why. Can anyone help? Here is my code:
private static **String[][]** readFile(String fileName) ...
1
vote
1answer
19 views
CompletableFuture injection from the inside
Is it possible to inject a CompletableFuture in a CompletableFuture chain from the inside?
I'm working with a function like this:
public CompletableFuture<Boolean> getFutureOfMyLongRunningTask(...
0
votes
1answer
22 views
Intent goes to activity that doesn't exist
I've tried to make datePickerDialog and go there using intent, but instead it goes to the activity I don't have.
My intent method:
public void toDate(View view){
Intent i = new Intent(...
0
votes
1answer
33 views
“cannot find symbol” issue with Constructor
Purpose of these two files:
the Object 'na' (in the first file) calls functions through the second file to analyze numbers from a text file and return the highest number, lowest number, total, and ...
0
votes
0answers
7 views
How to bind a JComboBox selectedItem to a Jtable by code using binding classes?
I m successfully binding a JTextField to a selected row from a JTable using this code :
public static final void BindTableToFields(JTable Table, Object[] Fields) {
for (Object Field : Fields) {
...
0
votes
0answers
3 views
NetBeans set up to create web service client based on wsdl that requires client authentication
I would like to generate a web service client based on WSDL which resides on server that requires client certificate (client authentication).
Is there a way to set up netbeans to use specific ...
-4
votes
0answers
12 views
How to interact inbetween action events of javafx - swing? [on hold]
I have developed JAVA GUI with Java FX and Java Swing.I want to call javafx action event from java swing action event.
Thank you for your help.
0
votes
4answers
37 views
variable not being defined by if statements
I'm trying to make a program that will make string s1 equal to certain text depending on the hours variable. The problem Is when I run the program s1 isn't found. I'm just starting out with java so I'...
-1
votes
0answers
17 views
SQLite database for saving Tetris high scores?
Would it be overkill to use an SQLite database to save high scores for a simple Tetris game as opposed to a text file?
I'm making the game with JavaFX.
1
vote
0answers
12 views
How to send via Wifi Direct from Android to PC?
I'd like to send files from my LG G3 to my laptop via Wifi Direct. But until now I just found tutorials and examples on how to send from phone to phone, is there also a way to send files from my phone ...
0
votes
0answers
33 views
How to separate Boolean expressions on operators (JAVA)?
How to separate Boolean expressions on operators?
I have expressions as the following String:
String expression = “((468551X68X304.NAOK == \"2\") and (468551X68X305.NAOK > \"2\") and (...
0
votes
0answers
13 views
Editing HTML file using Java [duplicate]
I am able to parse the HTML file and make the required changes, but I am not able to store it as an output html file, ie, the changes are visible in console but not in the html file.
My requirement is ...
0
votes
0answers
5 views
Spring OAuth2 server - Token access without user credentials
I am new in Spring development and I need to integrate OAuth2 security in an already existing project (OAuth2 provider, not client). In some tutorials this kind of example is given :
curl <...
1
vote
1answer
8 views
mend.findItem explanation and confusion
I'm new to android development and kinda to Java as well.
I'm learning how to add buttons to actionbar - everything is working, but I don't understand few things.
//Showing small icons at actionbar
@...
0
votes
0answers
10 views
java.swing and java.awt how to check if a button is activated or not? [duplicate]
Basically
JButton.isEnabled()
Is not working out for me. Once that the button is pressed I need a method to run and currently i cant check if the button is pressed or not. There were a lot of ...
0
votes
0answers
4 views
dfProcess and dfSequence
I recently started working on a project in which there is a ".dfProcess" file that I cannot figure out how exactly it works. I have been trying to find some resources by which I get familiar with the ...
0
votes
0answers
2 views
How to use Selenium inside of a map() function in MapReduce?
I am new to MapReduce and Hadoop and trying to create a program that loads a bunch of web pages, collects text from the web pages using Selenium and concatenates it to a file "finalInput.txt" I have ...
-2
votes
1answer
54 views
Why am I getting a NullException on my for loop?
My springboot application runs during the config file, I receive the length, and the values of my server_array. Then I get an nullException error for my for loop. I have no idea why this is happening. ...
-1
votes
1answer
44 views
Class does not print as expected [duplicate]
public String toString()
{
String str = "Lab Score: " + grades[0].getScore() +
"\tGrade: " + grades[0].getGrade() +
"\nPass/Fail Exam Score: " + grades[1]....
-1
votes
0answers
17 views
Android Pedometer app
I was trying to make an app with pedometer. I already have the sensor but I'm not sure about how operation I have to do in order to make a Step Counter. I got the following code
import android....
-1
votes
0answers
7 views
I need to add all the contents of the column TABLE_ROW_RATE and return it to a calling function (say-getsum).How to do this
I cant find my answer after a lot of search so I need to ask this. Please answer in detail.
So ,I need to add all items one column named TABLE_ROW_RATE and then return the total value to a function ...

