• All Sites

0 answers

database file not opening after merging projects

I am working with Android Studio and java. I created a test project that can copy an existing SQLite database into a program. The project also can append the copied database and read it back. This ...

1 answer

FreePlane node details extraction and casting

this is a FreePlane Groovy code. The task is to extract the node details and cast it to integer, or leave it equal to 1 if details are null (empty) or non-numeric. Initially, node details contain only ...

0 answers

Issue with Modified Bubble Sort Algorithm

Ok I'm trying to write an algorithm for sorting an array, in this case an array of random integers. I know QuickSort or similar would obviously more efficient, but for this assignment I have to ...

3 answers

Program runs in Eclipse, but exported runnable jar file will not open?

It looks like this is a common problem, but none of the previous posts seem to address my issue. I believe I've narrowed it down to one problem. Any application that uses an InputStream will not ...

3 answers | 8 mins ago by Dan on Stack Overflow
4 answers

Переопределение стилей CSS

У меня на страничке используется DecoratedTabPanel. Я написал к нему свои стили. Положил их в файл styles.css. Мои стили из styles.css применяются не ко всем элементам панели. Если посмотреть в Хроме, ...

3 answers

Where the physics should be put

I'm studying a book of artificial intelligence applied to games. It shows several algorithms for each argument (movements, path finding.. ecc). Unfortunately (but obviously) it does not explains how ...

3 answers | 9 mins ago by Loris on Game Development
1 answer

How can you add images to Android App from java code

My friend and I are making an android app for our class project. We are making and app with tabs. We want to know if there is a way to use one xml file for the tabs and if we can add pictures straight ...

1 answers | 11 mins ago by zingwing on Stack Overflow
1 answer

Java - resize component whenever jframe is resizing

I'm trying to make a game. I'm testing on multiple computers and While i tested it I saw in a different computer which have a different screen that all the size of the components in the JFrame have ...

1 answers | 11 mins ago by Alahlavo on Stack Overflow
1 answer

Selenium IDE Throttling in WebDriver Script?

So, in the Firefox Selenium IDE, you are able to "throttle" the script by adding a pause between each command using a slider from "Fast" to "Slow". I was wondering if this can be simulated in a Java ...

1 answer

Ecommerce HTML Cleaner?

I'm trying to scrape eBay via Selenium but it's difficult to extract the required data. I know there are tools that allow you to clean HTML data in order to extract the "article" and remove the ...

1 answers | 12 mins ago by Jim Kim on Stack Overflow
1 answer

Simple addition program

I can't figure out why my program won't return the sum of the numbers I input it just returns "sum=" import java.util.Scanner; public class Integers2 { public static void main(String[] args) { ...

4 answers

My Java Program will only run in eclipse IDE. Not as a exported Runnable jar

So I have been making a little Game. And it only works in eclipse when I run because that includes the public static void main(String[] args) so it seeks that first. Now when I export it ...

4 answers | 15 mins ago by elliot5 on Stack Overflow
5 answers

how to print all result in single line

i have loop which is giving me some numbers below is my code public static void main(String[] args){ for (int i = 1; i < 100 ; i++) { if (i % 15 ==0) { ...

5 answers | 19 mins ago by user3665536 on Stack Overflow
0 answers

Dispatcher initialization failed error in struts2 application

i am getting the folloing errors SEVERE: Dispatcher initialization failed Unable to load configuration. - action - ...

1 answer

Convert Html Form to Pdf along with radio buttons and checkbox in php

I have a form with 100's of fields along with radio and check-box. What will be the best way to create PDF from it. Here is the link to my form ''. I have used 'JSPDF' library ...

1 answers | 23 mins ago by Web Expert on Stack Overflow
3 answers

How to I convert long (currentTimeInMillis) to UTC timestamp?

My client is sending me Long which could be thought as scala> System.currentTimeMillis res3: Long = 1441056836609 scala> How do I convert that into UTC timeStamp? On Server, we are using ...

3 answers | 23 mins ago by daydreamer on Stack Overflow
1 answer

I want my Android Fragment to cover the MainActivity screen (I don't want to see any MainActivity text, buttons, etc.)

This seems to be such a fundamental question that I'm embarrassed to ask it, but I'm so frustrated by my Fragment learning curve that I'll expose my ignorance. An example in a textbook that cuts a ...

4 answers

RPC Error with Geocoder

After several days to learn how Android works, I decided to build my first App : A simple app which displays the GMap from a address provided by the user with a simple EditText widget. I use Geocoder ...

0 answers

How to expand and do regroup a List of List using Java 8 Stream?

I have a list of the Class A, that includes a List itself. public class A { public double val; public String id; public List<String> names = new ArrayList<String>(); ...

2 answers

No suitable method found for println… Java

I am trying to test my arrays that I stored in variables by displaying the first int/double/string stored under a method called displayMessage. However for some reason whenever I make the method I get ...

0 answers

Send RSA public key from Java server to C# client

How can I create RSA public key in C# using data sent by Java code? Public key is created using this Java code: KeyPair pair = KeyPairGenerator.getInstance("RSA").generateKeyPair(); PublicKey ...

6 answers

Spring 3.1 configuration: environment not injected

I am using the following for the spring 3.1 configuration: @Configuration @EnableTransactionManagement public class DataConfig { @Inject private Environment env; @Inject private ...

1 answer

JAVA Recursive addition from input stream using Scanner

I am trying to write the definition of a method that receives a reference to a scanner object associated with a stream of input consisting on integers only. The method should read all the integers ...

1 answers | 26 mins ago by Anthony Henry on Stack Overflow
2 answers

Como cadastrar uma foto usando UploadedFile do primefaces? eu estou tentando cadastrar mas o upload file esta vindo como null

Bean Classe ProdutoBean: import; import; import java.util.List; import; import org.primefaces.event.FileUploadEvent; import ...

0 answers

How do I make a server accessible over the internet

I wrote a chat client and server in Java. It works but as I'm finding out, only locally. The goal is to get it to function over the web. I've tried quite a lot of things, and can elaborate if need ...

0 answers

Could Java import C++ classes from a library using JNA or JNI?

In past, I used JNI to access some winapi functions, however winapi is C and therefore just procedural. Now my plan is different and I need to know whether I'm going in the right direction. What I ...

0 answers

sec:authorize dont work in spring security 4

I'm trying to use spring security taglib, in 3.2.8.RELEASE version this code works correctly, but with the 4.0.2.RELEASE version does not work, doesn't render the sec:authorize tag content, and the ...

0 answers

Android OnClickListener for Custom Keypad

My goal is to create a system that allows a custom keypad to appear and collect input from the user, but I'm unsure of how to approach it. I want to be able to take the user input from a click and ...

1 answer

How to Sort the list by frequency in a descending order

I have finish my code to find top 20 words after search many times , but it is not in descending word. I need to add the code to Sort the list by frequency in a descending order, if two words have the ...

1 answers | 32 mins ago by ghco on Stack Overflow
3 answers

Delete all the entries but the specified Key set from Hash Map

I am trying to delete all the entries in HashMap apart from the specified Set of Keys. For example say HashMap numToalphaMap has entries 1-->a, 2-->b, 3-->c, 4-->d. Given KeySet is {1, 2}. I want to ...

3 answers | 33 mins ago by Angel on Stack Overflow
15 30 50 per page
1 2 3