Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.

learn more… | top users | synonyms (5) | java jobs

0
votes
1answer
10 views

Java socket, Is that a dead lock or what?

I have a client-server program using socket on the server side and read and write is happening in that way soc = serversocket.accept(); System.out.println("Accepted"); in = new ...
0
votes
1answer
19 views

Java - Instance method for specific generic instances

can I make a method that works on specific type of a generic class. For example, I have my class below: package utils; public class MyArray<T> { // Constants private static final int ...
0
votes
0answers
4 views

When to release AudioRecord object?

I am using the following code. It works fine and shows the frequency. But everytime before starting the app i need to reinstall it so that it works correctly. Could it be that the object is not ...
0
votes
0answers
6 views

Distribution of jni.h with my software package

I do have a piece of software that I intend to release under the terms of the MIT license. It uses the Java Native Interface, but will only use dynamic linking to load the libraries. It needs however ...
0
votes
0answers
16 views

Android - Cannot be resolved or is not a field

Assume ClassA that define a static final string: public class ClassA implements Serializable { public final static String KeyString = "aKeyString"; And now ClassB trying to use this string: ...
0
votes
0answers
7 views

JAVA - Focus Window while in a game without minimizing the game

there is a way of bringing my window to the front without minimizing the current Full Screen Game? For example: I'm Playing a game and then i click CTRL+F and a window popup while I am in the game, ...
-1
votes
0answers
16 views

Getting triangles side coords within a circle

I want to get the x and y coördinates on the triangle for every degree 'a', if I know the 30° and the radius. I also want to use it with more corners. Here is the image: ...
-1
votes
1answer
12 views

Thumbnail creation as preview for XML file

How to create thumbnail for an XML document using Java? I need to create a thumbnail for an XML file. I preferred to convert that XML to image but I got failed in it. The thumbnail should be a ...
-4
votes
0answers
16 views

How to initialize a class in a runnable?

I need to have my class initialized in the run method. How do I do so? package me.javoris767.votesql.listeners; import me.javoris767.votesql.VoteSQL; public class VoteListener implements ...
1
vote
0answers
10 views

Reusing a SecretKey in Java

I'm trying to simply encrypt some text, save it in a text file, and load/decrypt it. Using the tutorials on the Java website, I've been using the code: public class MainClass { public static void ...
-3
votes
0answers
14 views

Try to explain this SWIPE DETECTION java code in android

I am not able to understand this code.. If anyone could help me out, It will be highly appreciated.. package com.example.Reminder import android.util.Log; import android.view.MotionEvent; ...
0
votes
1answer
12 views

what is wrong with the hibernate mapping xml?

As I validate the following xml, I get the following error : The content of element type "class" must match "(meta*,subselect?,cache?, synchronize*,comment?,tuplizer*,(id|composite-id), ...
0
votes
0answers
16 views

How to serialize an object for Android SQLite storage?

I know that I can serialize objects using writeObject() on an output stream. But how do I serialize them to a string or other structure so that I can store it in a BLOB field in my Android SQLite ...
0
votes
2answers
39 views

Java codes giving error after proper allocation of memory

I'm trying to print the value of each pixel, but it gives error when p = 300. Before p = 300, all pixels are printed. orignal.getHeight() = 344; and orignal.getWidth() = 300;. BufferedImage ...
0
votes
1answer
13 views

Looking for a specific Java container

I'm looking for a container in java, that will enable unordered insertion, and random extraction - something like a basket full of lottery tickets, out of which you need to randomly pick one. What is ...

1 2 3 4 5 28693
15 30 50 per page