Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).

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

0
votes
0answers
16 views

conference scheduling task

input: int[] a = { 60, 45, 30, 45, 45, 5, 60, 45, 30, 30, 45, 60, 60, 45, 30, 30, 60, 30, 30 }; this is lengths of the talks in minutes, i need to arrange talks in conference so that they conform ...
-2
votes
0answers
7 views

How can i remove the password from a secured PDF file using GS or any other command line tool?

after Googling i found some tools to remove the password from a secured PDF,but non of them gives you the expected results, i found in this a link a solution but it gives an error though many websites ...
0
votes
1answer
10 views

Access struts2 action class properties directly

I want to know if we populates action class properties, can we access them directly in the result jsp with out assign them to a form in the action class?
1
vote
0answers
9 views

Cobertura doen't work with Java 7

I'm using maven 3.0.4, JRE 1.7.0_09. When I use mvn clean install all my tests passes and everything looks good - here is my surefire plugin configuration: <plugin> ...
0
votes
0answers
10 views

Prettyfaces and the container based security

I have problem using the container-based security with prettyfaces. As far as I disable prettyfaces (remove its existence in pom.xml), the container-based security is working fine and pages are ...
-2
votes
0answers
26 views

How to get random number from this algorithm [closed]

If I have specified algorithm like this: class CarGenerator extends Process { public void work() { while (time() <= T) { activate(new Car()); ...
2
votes
0answers
18 views

Setting timeout on blocking I/O ops with ServerSocketChannel doesn't work as expected

I'm working on a small group conversation server in Java and I'm currently hacking network code, but it seems like I cannot set right timeout on blocking I/O ops: chances are I've been bitten by some ...
0
votes
0answers
40 views

insertion sort - is my code example correct?

I just tried to make my own "insertion sort" algorithm using java. It is working and sorting my ArrayList of strings. I just need to know if it is a correct "insertion sort" algorithm? public ...
-1
votes
0answers
16 views

Custom Web Browser Written in Java Not Functioning: Rendering and Links not Working

I'm making a simple Java Web Browser, it does load webpages from the URL but somehow they don't seem correct at all: Plus buttons and links on the page don't work. I think it's something regarding ...
6
votes
1answer
47 views

Is it okay to make Integer-keyed Maps in Java?

Just like in title. Is it okay to make something like this: HashMap<Integer, Object> foo = new HashMap<>(); Or maybe there's better container that allow adding values at any index? When ...
0
votes
1answer
21 views

Re-factoring the usage of same switch-case multiple time

In a class I have following switch-case: switch(articleStep.getDeveloper()) { case CENTRAL: switch(articleStep.getArticleType()) { case POSM: //some code ...
-4
votes
0answers
38 views

Why only 1 public class is allowed in a single java file? [duplicate]

Can anyone tell me.....what is the reason behind of keeping only 1 class as "public" in a single java file. Also, we have to name that java file with the same class-name which was made public?
0
votes
3answers
35 views

Android welcome screen waiting too long?

I'm new in Android development, every time when i try to start mine application, i need to wait very long? I have low PC perfomance, but i see that peoples with much faster PC's has same problems. ...
0
votes
0answers
7 views

jmf catch related udp packet of rtcp

I have one question. Is there any listener or event or any way to catch related udp packet of rtcp packet in jmf? The problem is: Ive read somewhere, that jmf currently does not support setting rtcp ...
0
votes
1answer
36 views

getSupportActionBar() returns null

I'm learning to use slidingmenu library. So far, I could use viewpager with 2 fragment. But I cannot use actionbar tab to navigate these fragments. Here is my code @Override public void ...

1 2 3 4 5 28928
15 30 50 per page