Java is a high-level, platform-independent, object-oriented programming language originally developed by Sun Microsystems. Java is currently owned by Oracle, which purchased Sun in 2010.

learn more… | top users | synonyms

-3
votes
0answers
11 views

Matrices Developing using Java [migrated]

Okay hey guys, So am asked to develop a matrices program using Java the program have a class called Matrix represents matrix of the fraction Number(another class) the quastion is How To :The class ...
-4
votes
0answers
24 views

Foreign characters display like junk on the screen

We want åäöÅÄÖ to work (for a custom cryptography) with Java. It seems that there is a problem whether åäöÅÄÖ are before Aa or after Zz. Which is it and which should it be? Am I mistaken that this has ...
-2
votes
1answer
35 views

InteliJ Git vs GitHub for Windows vs SourceTree [on hold]

So I'm a bit curious as to what is the best practice when using version control. I've been using SourceTree(w/ mercurial) at work but have used as well for my course assignments with (Git). I've also ...
-4
votes
0answers
38 views

Arrays List- Programming [on hold]

In my programming class I have been asked to make a program about solitaire and I have no idea where to begin. The game starts with exactly 45 cards. Initially, they are divided into some number of ...
12
votes
3answers
1k views

If Scala runs on the JVM, how can Scala do things that Java seemingly cannot?

Edit: Clarified question, as I feel that the linked question is similar but not exactly the same as what I was asking. I just learned about Scala yesterday, and I'd like to learn more about it. ...
-2
votes
0answers
11 views

Java SWING: JList holding multiple Components as a single item

Here is my problem: I'm creating a window that is responsible for listing a layer, where it displays the layer's current image (in the form of a ImageIcon as of now), layer's name, and a checkbox to ...
-4
votes
0answers
21 views

The design and implementation of a programming language [on hold]

I study computing, I have to create a language in ANTLR 4 and the implementation should be a compiler or interpreter. Have anybody an idea what kind of language can I create????
-4
votes
0answers
13 views

Including trail period and paid version in the software [on hold]

I am have few questions about the software launch I have built my software using Java, and Converted it to .exe setup using Excelsior. I want to include trail period/paid version in my software, ...
0
votes
0answers
42 views

Lag problem for a simple game in Java on Linux [on hold]

I made a snake game in openjdk-7 on Linux(Ubuntu 14.04) but there is a lag problem with the game.The lag occurs in openjdk-7 on my computer but some of my friends tried the game in openjdk-7 on ...
1
vote
1answer
32 views

Keeping lists of Objects, some with, some without inheritance

Let's say I have two classes, Foo and ExtendedFoo where ExtendedFoo inherits from Foo. Foo has a method .getValue() which returns a number, ExtendedFoo also has .increaseValue() which adds to the ...
-2
votes
0answers
23 views

Finding the sum of columns in a Two Dimensional Array with rows of different lengths [migrated]

So i'm having a bit of trouble with my code in returning the sum of the columns in a two dimensional array with rows of different lengths. For example a 2X2 array works perfectly to calculate the sum ...
2
votes
3answers
129 views

Automatic builders/chain setters for Java?

Consider that code: FancyClass c = new FancyClass(); s.setParameter(value); s.setParameter2(value2); //a lot of parameters It is really naive, so we can use a builder pattern: FancyClass c = new ...
1
vote
0answers
62 views

Were Java and Flash necessary pre-cursors to JavaScript and HTML5? [on hold]

Java appeared in the Netscape browser in 1995, with Javascript and Flash very soon after (I think). Java and Flash allowed programmers to add rich interactions to otherwise static sites, which can now ...
0
votes
0answers
46 views

Using WiFi USB dongles or other technologies to send non-WiFi data wirelessley in Java [on hold]

I'm currently trying to figure out a good solution to make a new kind of peer to peer network. I need a hardware protocol (ie. USB, Ethernet, Wifi, etc.) that is easily accessible from Java, probably ...
-2
votes
2answers
101 views

Is this a good game plan to become a fluent Java developer? [on hold]

I am an efficient person, and I am trying to find the best method of becoming a great Java developer. Here's what I'm thinking: First, learn syntax and Object Oriented concepts. Practice it, and ...
0
votes
1answer
88 views

Java front-end, PHP/MySQL back end methodology

I have been basically out of the programming world for about 10 years, with only a bit of dabbling here and there with small Java utilities and one large Access database I wrote for someone, and some ...
0
votes
1answer
78 views

How to deliver messages from a communication interface to a core?

I want to develop an application in near future, where I will receive data via a communication interface. So there exists a Java class, that is responsible for getting the data. After the application ...
0
votes
0answers
27 views

Help with IDE features integrating with ant build scripts

I've been spoiled by relying on IDE generated scripts for a while. But for the project I'm on now I have to use, basically, custom ant build.xml scripts. This hasn't really been a problem. But I'm ...
-1
votes
0answers
62 views

When should inheritance NOT be used in a program design? [on hold]

I have read into the debate on if inheritance should be used often or not and have found a few good points, but could some one present a good example of when inheritance should not be used?
4
votes
4answers
695 views

Should I edit a codebase's whitespace to conform to a coding style? [duplicate]

We have a large Java project (1m+ SLOC) with mixed whitespace - some files have tabs and some have spaces. It's tricky to make my editor work with whichever file I happen to be editing. We are ...
-2
votes
0answers
20 views

Can anyone tell me what will be the better for Http proxy [on hold]

I have assignment based on computer networks I have to design a Http Proxy Server but I am confused that whether I should build it on java or C#. Please guide me and also explain why it is good ...
-4
votes
0answers
24 views

MAXIMO LDAP: refused to connect [on hold]

MXSession session = MXSession.getNewSession(); String connHost = host + ":" + rmiPort + "/" + serverName; System.out.println("Connecting to " + connHost); session.setHost(connHost); ...
0
votes
1answer
94 views

Access fields of super class from derived classes [duplicate]

There is an abstract BaseGame class that will be inherited by specific game classes. This class has an attribute requestHandler that will be used in all subclasses and should be initialized in the ...
2
votes
0answers
48 views

Conventions for revision control with Maven/Jenkins

For a software project I am working on, we have a 'dev => QA => production' methodology. That is, we create a release candidate (deployed to Artifactory), give it to QA (deploy to QA systems and a QA ...
-3
votes
0answers
47 views

Finding the Longest Palindrome string from the first alphabets of random student names? [closed]

I have a problem in which I have a set of student names For example:A small set {'Alex','Boris','Zing','Nix','Chris'} etc. The first characters will be A,B,Z,N and C And the string generated by it ...
14
votes
5answers
953 views

Why does the TRACE level exists, and when should I use it rather than DEBUG?

In Log4J, Slf4J and a couple other logging frameworks in Java, you have two "developper" level for logging. DEBUG TRACE I understand what DEBUG do, because the explanation is clear. The ...
-3
votes
0answers
53 views

programming help [closed]

I am a young student in college trying to learn how to code, i was wondering if you guys can give me some tips and maybe some helpful resources that would be greatly appreciated
0
votes
3answers
176 views

Why does an interface extend an interface instead of implementing it?

In Java suppose that I have interface A: public interface A { // foo } I also have interface B: public interface B extends A { // foo + bar } Why does interface B extend interface A ...
0
votes
1answer
60 views

How do you name the Visitor implementation? [closed]

I was reading about Visitor pattern and was a little wondering about naming of the methods. Assume we have the implementation of the pattern as follows: public interface Entity{ public void ...
-2
votes
0answers
65 views

How to become Java developer.()() [closed]

HI im very very interested in java. I want to become a java developer. I cant join any institution because of my financial problems. Help me how i can become a java developer and what subjects should ...
1
vote
2answers
83 views

Split one big class on sub-classes

I have a generic question and I don't understand how create what I want. I writing a basic program they can access to one database an do some SQL request, etc. But at the moment I have one big class ...
-6
votes
0answers
51 views

C and Java Programmar [closed]

I am currently pursuing computer science in college. 1)I want to be a professional C and Java J2SE Developer...(not only a programmar)...so that I can develop system softwares,customize linux shell ...
0
votes
1answer
121 views

Elegant way to count the number of files in Zip archive

I need to count the number of files in several zip archives for error checking. I've found several answers on SO but nothing elegant. I currently have the following code which works but it's not ...
-2
votes
0answers
37 views

WebService in Java - why code does not execute? [closed]

Here is my sample code. It does barcodes scanning. Function sendJson should call webService. Code runs but in Apache log I see NOTHING. For some reason web service is not called. What I'm doing wrong? ...
-4
votes
0answers
73 views

What do you think about a CMS similar to WordPress but implemented in Java? [closed]

I am a Java developer and I am also interestest in WordPress CMS (it is a very popular PHP product, I think that all know it) website development. In this time I am working in Java on LifeRay webapp. ...
0
votes
0answers
58 views

Why use logstash with elasticsearch? Any advantage [closed]

Recently i am working on generating a report using kibana and elasticsearch. Is there any advantage of using logstash to send data to elasticsearch over sending it directly? Gone through a few blogs ...
1
vote
2answers
73 views

best practices for packaging in Scala projects?

Scala runs on the JVM, but that doesn't mean we have to write it like Java. Eclipse discourages use of the default package. What are some considerations (e.g. size of project) that determine how ...
1
vote
0answers
67 views

How to loop through array bidimensional in diagonal according to a position in degrees

The title could be no self-explanatory enough but I need some conceptual help in order to implement a solution to go through an array: I'm developing a program to calculate the "most shadepath" route ...
56
votes
5answers
6k views

What exactly makes the Haskell type system so revered (vs say, Java)?

I'm starting to learn Haskell. I'm very new it and am just reading through a couple of the online books to get my head around its basic constructs. One of the 'memes' that people familiar with it ...
0
votes
1answer
63 views

Converting from byte[ ] to user defined type

I am working on a network simulator designed in java with the basic function of routing messages through a network. I am trying to take a Message object, encrypt it using an encryption utility that ...
0
votes
0answers
28 views

Can't figure out how to parallelize the calculation of the amount of offspring expected for species in genetic algorithm

I developed a genetic algorithm in java 8 taking advantage of its reasonably free parallelism opportunities with Streams. As you are likely aware, running the epochs takes its time for even a test ...
2
votes
1answer
71 views

Internationalization on a service layer of an application

My specific problem is how to handle internationalization of specific messages from an architecture layer that is not the view layer(e.g service layer). I've created an architecture based on ...
-2
votes
0answers
16 views

JComboBox to auto suggest in java se [migrated]

I want to know how to get an JComboBox to auto suggest the elements when we type in the combo box. For an example, If I had loaded a JComboBox with these names using MySQL, [Amila, Nimila, Nikila, ...
-3
votes
0answers
8 views

I am getting org.hibernte.InvalidMappingException: unable to read xml when i try to run my program [migrated]

I am a beginner to Hibernate and cannot understand in which part of my program I have made an error. Can anyone please tell what may cause this type of error : org.hibernte.InvalidMappingException: ...
0
votes
1answer
29 views

How do I effectively test, and log, network status with a Java Application?

I want to write an application (in Java) that basically detects when I lose my internet connection, and then log the time. To make things more challenging, I'd like to figure out the point of failure. ...
1
vote
0answers
64 views

Finding the closest n points to any arbitrary point in two dimensions (r-tree, quadtree, spatial index)

I have a distribution of two dimensional point objects. How is it possible to find the nearest N number of points to any given point without iterating over the entire collection of points (and only ...
0
votes
1answer
62 views

Serialization - can the output from a serializer be modified and then de-serialized

I am trying to serialize a Message object using ObjectOutputStream ,take the byte[ ] output of the serializer,encrypt it using an encryption tool and then trying to de-serialize it and cast it as an ...
1
vote
1answer
91 views

How can I find what Resources a Java EE container provides?

How can I find what "Resources" a Java EE container provides? Can I discover this programmatically, or is there documentation I should refer to? (Note that the Java EE tutorial is vague on this ...
2
votes
3answers
259 views

“One of some”-type

Say that you have some different classes that does not really have any functionality in common, but somewhere in your program, you need one of them (which one is not necessarily important) because ...
0
votes
0answers
88 views

Java server side : Is this a good design/layered approach? [closed]

We are in the process of designing an application using AngularJS, RESTful service (Jersey) and JPA for CRUD operations.The RESTful layer might call other external services to get data. There could be ...