java

java

  • All Sites

0 answers

Reorder the security provider list

From my understanding, in Java, when working with Security class, the code Security.getProviders() lists all the available providers in a preference order, the most prefered provider is in position 1. ...

1 answer

Removing element from arraylist

Actually I want to do to set the pointer of arraylist to index which I will give, and my program will check if there's still elements then it will remove all from that index which I have given. ...

1 answers | 8 secs ago by Xaini Ali on Stack Overflow stackoverflow.com
1 answer

menu bar in android studio project

im new in android studio and im having many problems doing a menubar. I have searched for many solutions but they werent going right. Plz can anyone help me doing a menubar. i used to try this but i ...

3 answers

Converting HTML to image using java

i'm facing some problem converting html to image using java im using html2image[java] it create an image, but the problem is it only create an image on a small part of the html. how can i make it to ...

3 answers | 25 secs ago by audrey ruaburo on Stack Overflow stackoverflow.com
3 answers

converting an array to doubles

Sorry I am new to coding, I am trying to convert an array to doubles but I want to skip over the first line of the array. I have the following code public void organisedata() { try ...

3 answers | 44 secs ago by user6271958 on Stack Overflow stackoverflow.com
2 answers

How to retrieve all the name from MySQL?

I want to retrieve all the name and the number of row from MySQL to java. So far I only able to retrieve the total row number but I only get the last name. What's wrong here ? StaffManagement.java ...

2 answers | 1 min ago by AI. on Stack Overflow stackoverflow.com
3 answers

Horizontal progressbar add circle indicators

Im trying to create a custom horizontal progressBar that will have certain amount of circle indicators in it, like this one: Can anyone tell me how can I achieve this effect(adding of the circle ...

1 answer

How to fix “ java.lang.ClassNotFoundException: com.mysql.jdbc.Driver” with BlueJ and Wampserver

I am a new programmer with BlueJ I had to create a class called Connexion which connects to my MySQL database, but I get this error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver My Code: ...

0 answers

Empty column values mapping to java enum using ORMlite

How do I map empty or unknown values to the enum in java. I am using Ormlite. @DatabaseField(canBeNull=false, columnName=COLUMN_NAME_DEVICE_TYPE, dataType=DataType.ENUM_STRING) private ...

0 answers

JProfiler identifying “Unclosed Collected” connections when using JDBCTemplate from spring-jdbc-4.1.6.RELEASE

We are testing vendor code, and to help with performance we installed JProfiler 9.1.1. JProfiler has been helpful identifying performance issues. One thing that JProfiler identified was "Unclosed ...

1 answer

SnakeYAML: Is it possible to get the anchor name of an object?

When I load the following document with SnakeYAML: unit: &kg name: Kilogram it returns a map with the following content: {unit={name=Kilogram}} The referencing with anchors works great ...

1 answers | 3 mins ago by Michael on Stack Overflow stackoverflow.com
1 answer

Java Passing Type as parameter into function expecting subtype

i am new in Java and i try to make some really simple java applications. In my attempts i have come to problem with generalisation. I have a list of Person objects. Person can be Father or Mother. ...

2 answers

javascriptexecutor -Not able to click element with body style tag as “overflow:hidden”

hi when we have to change tags attribute value with the help of javascriptexecutor in selenium webdriver (java) we use like belwo : JavascriptExecutor js = (JavascriptExecutor) driver; ...

0 answers

Android POI plugin says Duplicate files in APK-META-INF

I know that this question has been asked by many before this but i have tried the solution in most of the posts but am still facing issue. I want to read excel(xlsx) file in android app. I have ...

0 answers

Java MongoDB Driver: $ and . character handling

I know this question has been asked earlier also, but I couldn't find a solution that works for my case. So I'm asking this question again and hopping that someone can answer now or have some new ...

0 answers

WebDriver always opens an extra browser window in IE11 and Chrome

Does anybody see this issue? It happens on IE11 and chrome (WebDriver 2.53.0 Java) Whenever I open an URL, say facebook.com, 1st it opens a blank page with URL in address bar: ...

1 answer

Instantiate object from class name as string

Let's say have a class name as string. String myClass = "com.whatever.MyClass"; How can I instantiate this class using reflection and have an object of type MyClass and not Object, without using ...

1 answers | 5 mins ago by kmata53 on Stack Overflow stackoverflow.com
0 answers

GWT - Decimal formatting displays -0.00

I am using GWT's own com.google.gwt.i18n.client.NumberFormat class to format the double value to 2 decimal places and here is the code. public static final NumberFormat DECIMAL_FORMAT = ...

0 answers

How to make the interaction of sensors is in box2d?

I can not figure out how to make the interaction of the sensor platform has become active. something like this: BeginContact { if (sensorA && sensorB){ platform.getBody () ...

2 answers

JDBC CallableStatement issue

please help me to fix a problem. I need to print the NAME of a user , but get only first letter of it. public static void main(String[] args) { Connection conn = null; ...

2 answers | 6 mins ago by Maria on Stack Overflow stackoverflow.com
0 answers

Send accessibility event when clicking on a drawable?

Maybe this is a stupid question but I'm new to Android and I'd appreciate any help you could lend me. I have a drawable (not a button) on the right side of an EditTextValidator (I did not create this ...

1 answer

Atribuir item selecionado a Jcombobox

Estou com um problema onde os valores dos meus jComboBox não estão sendo retornados mas os valores no banco estão corretos. Tenho um jFrame de Cadastro de veiculo, que quando acionado o botão de ...

3 answers

Azureus runs fine on latest java but its dependency check asks for dated version of JRE. How to tell Ubuntu to stop naggin me for “unmet dependency”?

So I force installed Vuze (and its dependency Azureus) via apt-get, and it is working fine on default-jre. Even though the default-jre works as a dependency for Azureus (at least for my use-case ...

3 answers | 6 mins ago by user140259 on Ask Ubuntu askubuntu.com
0 answers

Java : How to check if an SQL column exists

I would like to know how to check if an SQL column exists in my Java program, and if not, add it to the table. I've looked around, and I understand the query required for SQL but I would like to know ...

0 answers

JPA using Hibernate as implementation - fire SQL statement when a new Session is opened

I am using JPA with Hibernate as the provider on WebSphere. Is there any way to fire a SQL statement when a new session is opened against the database. Ideally I would want to say when a new ...

0 answers

Creating a Ludo game

I've been given an assignment the hand in on Wednesday and it is to create a Ludo game. I have the jist of everything working but I cannot figure out how to make the player pawns take a set path. so ...

0 answers

Как сделать взаимодействие сенсоров в box2d?

Я не могу сообразить, как сделать так, чтобы при взаимодействии сенсоров платформа стала активной. что-то вроде этого: BeginContact { if (sensorA && sensorB) ...

0 answers

libgdx box2D ContactListener does not get called

I am having a problem with the box2d ContactListener in libgdx. For some reason the methods of my ContactListener do not get called. I even made sure that after I call the World:setContactListener() ...

3 answers

JAVA Get each value of arraylist

I have one arraylist that contain two list like this [[asd, asswwde, efef rgg], [asd2223, asswwd2323e, efef343 rgg]] My Code is ArrayList<String> create = new ArrayList<String>(); ...

3 answers | 8 mins ago by user3441151 on Stack Overflow stackoverflow.com
1 answer

Converting Java to Avro and back when using kafka

I'm using the confluent platform, 0.9.0.1 and kafka-avro-serializer 2.0.1. Trying to send events to kafka and read them back, I don't see how to turn events back into Java objects. I've read the avro ...

15 30 50 per page
1 2 3