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
0answers
2 views

Mirror function for Binary tree in Java

QUESTION : Design a mirror method that computes the mirror image of a binary tree. What is wrong with my code?? This makes sense to me, however the only example that passes is my Leaf only example: ...
0
votes
0answers
3 views

Getting error while injecting the spring dependency

I am getting error while injecting the spring dependency , please advise how to overcome from this and please also advise the cause for this exception to come Error setting property values; nested ...
0
votes
0answers
6 views

netty fireWriteComplete actually nothing written to remote

netty 3.x, nio model: the netty IO writing thread will invoke WritableByteChannel.write(ByteBuffer) finally,netty will consider it written successfuly,but actually the bytes are written to a socket ...
0
votes
0answers
9 views

Add content of separeted Lists to JTable

How do i populate a JTable with content from 2 different lists? i have 2 lists with Objects i get from 2 different tables in a database, Then i want to put all of them into a single row in a JTable So ...
0
votes
0answers
5 views

What content-type does dropbox (file put) api uses? and How to mimic it?

I was reading the files_put documentation for the Dropbox API. The URL Path they use is: https://api-content.dropbox.com/1/files_put/<root>/<path>?param=val and request body holds the ...
1
vote
0answers
6 views

How do I create form controls (radio, checkbox, buttons, etc.) in Excel using Apache POI (Java)?

Is it possible for me to produce form controls for Excel with Apache POI library using Java? If this is not possible, what are the alternative? I really need this to accomplish my works. Thank in ...
0
votes
0answers
8 views

Merging several ByteArrayOutputStreams into one FileOutputStream

I am splitting up a computation among eight threads and writing the results to a file, as follows: 1a. Each of seven threads processes its input and writes its output to its own ...
0
votes
2answers
32 views

String.split won't let me split with periods

I am trying to do a String.split on a website address using the "." so that I can find the domain name of the website. However, when I do this: String href = "www.google.com"; String split[] = ...
0
votes
0answers
29 views

How to identify variable names in an instruction?

I am looking for a solution which will provide me the names of every variable through which the value of password variable passes away. That is, {pass, temp, temp1, var1} class Student{ public ...
0
votes
0answers
4 views

XML + CSS to PDF (flying-saucer library currently, open to other ideas)

Okay, so I'm trying to convert an XML file into a PDF using CSS for formatting/layout. XML file: <?xml version="1.0"?><?xml-stylesheet href='file:C:/feedback-export/pdf/pdfstyle.css' ...
-1
votes
0answers
14 views

Design and development of a meeting scheduler in java

Hey I guys I a complete newbie in JAVA. I was ask to design a meeting scheduler with 10people and the choice of time is 9am to 4pm. Each person can choose two time to have the meeting for an hour. I ...
0
votes
1answer
28 views

How to stop matcher on the first occurrence of a char?

I would like to using Matcher in this string: #Function()(a) To select just: #Function() I'm using this regular expression: Pattern pat = Pattern.compile("\\#.*\\)"); Matcher match = ...
0
votes
2answers
29 views

How to use a variable from a method(inside Try-Catch) in another class? Java GUIs

So I'm trying to create a basic RPG userID selection menu using JFrames; I opted to display the ID options using radio buttons. Once the user selects and ID I burp it back using a JOptionPane. All ...
2
votes
2answers
21 views

Serialization and objects stored as instance variables

I'm a little confused about serialization. I have a class, lets call it Container. Variables of the Container class contain ArrayLists of other classes - A,B,C,etc... If I were to serialize and ...
0
votes
4answers
35 views

Parameter passing and method calling

I have a question about parameter passing. In this example methodTwo wants to call methodOne but only use the x, and y values and not the Color color. When I try to do this i get a error in Eclipse ...

1 2 3 4 5 27887
15 30 50 per page