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

0
votes
2answers
174 views

how to approach pharmacy software project [on hold]

I have seen various pharmacy software solutions, and they seem pretty complex. How can I complete a basic proof of concept if most of the API's are not free. For example my basic pharmacy software ...
-3
votes
0answers
34 views

What are Java, HTML, and Javascript technologies for producing basic reports with Excel export? [on hold]

We have several reports that are very basic in nature. Some reports accept up to 3 parameters. All reports generate a table with the result set. No pie charts, line graphs, etc. The reports can be ...
-3
votes
0answers
27 views

What is the best framework to develop an Android app that connects to an existing MySQL database through a web service? [on hold]

I have experience developing Android apps using both Eclipse (Java) and Xamarin (C#). I have never tried connecting my apps to a database until now. It sounds like I need to use Android tools to call ...
-2
votes
0answers
22 views

IE 11 Compatibility mode [on hold]

I want to add IE 11 compatibility mode in my code.I cannot use meta tag, as "". Please suggest me other than meta tag. Thanks in Advance.
-3
votes
1answer
95 views

As I learn to program [on hold]

Ok, life story in two sentences. I have been to college and have one semester left but I have obtained absolutely nothing from it (life lessons and the like don't count- I'm talking lucrative skills ...
-3
votes
1answer
77 views

Java Multiple for loops [on hold]

I have a small java program I am working on where I am to calculate interest rates from 5%-10% after one year (this is for practice). However, when I try to print out multiple columns, it doesn't ...
0
votes
2answers
81 views

Way for java program to read file from when it was stopped

I am working on an application that reads a log file, looks for a specific string, sends alert emails and saves data from the file into a database. The reading functionality is working well, but I am ...
-4
votes
0answers
21 views

Can anyone suggest me a good source for Exception handling and collection [on hold]

Can anyone suggest me a good source for Exception handling and collection. I have tried oracledocs, and scjp/ocjp books. But still I find that there is a lot more to cover. If anyone can suggest me ...
-9
votes
0answers
40 views

help me its showing error [on hold]

class first{ int x; static first t2; private first(int val){ x=val; System.out.println("object is created"); } static first getob(int t) { if(t2==null) { first t1= new first(t); ...
0
votes
1answer
72 views

How can I perform a logical test to ensure that MY CUSTOM ERROR gets thrown instead of the NumberFormatException?

I am working on something that should be fairly simple. I have 95% of my program working, but one piece is still not fulfilling the requirement. (FYI, this is for a homework assignment, but I will ...
0
votes
0answers
75 views

Result Object vs. Exceptions

Related to this question I posted earlier: Returning results of method on batch list? I stumbled across an interesting idea at: https://www.braintreepayments.com/docs/java/general/result_objects ...
3
votes
2answers
123 views

Program Design clearness vs convenience

I've recently disputed with my colleague about the following situation: I've developed a framework that processes the resources (in java, although its not really important). It goes (simplified, ...
4
votes
3answers
67 views

Returning results of method on batch list?

The title is a bit vague so I'll try to elaborate. I have a function makeFoo(int bar) -> returns Foo or throws Exception. I also have a batch version of this makeFoos(int[] bars) -> ...
0
votes
3answers
151 views

When to use default access modifier?

I want to understand, from design point of view, in what situations I should use default access modifier, and when I shouldn't. I found this related question, that provides some basic explanations, ...
0
votes
1answer
74 views

Multilayered enterprise application use of JAXB objects

I am asked to refactor and maintain an enterprise application. Normally I'm used to using the MVC design pattern. This time however, I'd like to separate everything into layers (multilayered ...
-1
votes
0answers
47 views

Android Set Device DIscoverable (bluetooth) without any dialog [migrated]

How can I set the dialog to be hidden / suppress it to Yes when I try to execute the following code below? discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); ...
1
vote
2answers
225 views

Is it okay if we use an arbitrary string as UUID?

I found the tutorial of client (android) and server (pc) bluetooth tutorial from here. But my question is about the UUID. Is that okay if we define it randomly without the proper format? Because I ...
0
votes
1answer
71 views

Automatically create or update object in database

I have a database class with the following interface: public Database { //returns false if p (its ID) is already available //otherwise adds p the the list and returns true public boolean ...
-3
votes
0answers
20 views

How to do the official Spring REST tutorial with out using @ComponentScan? [on hold]

Here's the tutorial refering to the part where it quotes The @ComponentScan annotation tells Spring to search recursively through the hello package and its children for classes marked directly or ...
-2
votes
4answers
98 views

Try Catch and possible NullPointerException [on hold]

Sometimes I am in the situation that I want save the result of a function call into a variable but the function could throw an exception and i want to handle this e.g. by throwing another (chained) ...
-1
votes
0answers
39 views

Wifi Communication between two device without intermediary device [on hold]

I want to develop an app that will be deployed in two android devices for making them communicate through wifi. And here is the case: Two devices are turning on their Wifi They're not connected to ...
0
votes
0answers
40 views

How does the android JNI work [on hold]

I am currently trying to create an iPhone/android app I have chosen to write the model of my program in C++ since it is supported by both platforms. I have been able to compile my C++ source into the ...
-5
votes
0answers
54 views

Best company to Join for long term better career? [on hold]

I have total of 2.5 years of experience in Java/J2EE, Spring, Hibernate and SQL. Currently i have 3 offers in hand and got confused which one to join Money is not matter but long term career matters ...
-1
votes
0answers
70 views

Automatically expose large software library using web services? [on hold]

(Edited from initial post) Lets say I want to automatically generate web-service wrappers for some large arbitrary source code library (it doesn't matter which language). The aim is touch-free ...
0
votes
0answers
36 views

Finding coordinates x and y from arc [closed]

I am planning a race simulator car in JAVA and I have a problem to get the x and y coordinates from the graph (or circuit). I explain the problem better. If I for example, drawing an arc using ARC2D, ...
4
votes
2answers
160 views

Understanding JAVA generic keyword 'super'

Recently some people said that I was wrong when I explained why one cannot insert a Number object into a list declared as List<? super RationalNumber>. (This assumes that RationalNumber is a ...
-1
votes
1answer
50 views

Is any one of these the right way to write a license for your opensource project forked and modified from an existing one with different authors?

I've used parts of source from an existing Java library project with what appears to be a 3-clause BSD license. I've made significant changes to the library which makes it possible to use it in a new ...
3
votes
2answers
94 views

System state design composition

Consider the following Java code: public class HumanStateImpl implements HumanState { private boolean alive; private Color skinColor; // getters and setters, other state fields ...
0
votes
0answers
25 views

Remote limitations of hg4j?

I’m evaluating hg4j to see if it’s useable in my current project. I need a (preferably) pure Java hg library that can: Check out a working copy of a remote hg repo at, say, ...
1
vote
1answer
85 views

Pros and cons of custom exceptions [duplicate]

This may be an pointless question based on opinion, style, and context but I've been racking my brain trying to decide whether or not to make use of custom exceptions and would love to hear some pros ...
3
votes
2answers
612 views

Why does C# have much more features than Java? [closed]

Please note that this isn't meant to be a Java vs. C# argument. I'm a Java programmer with no C# experience, asking just out of curiosity. I did some reading on C#, and it seems it has much more ...
-4
votes
0answers
26 views

can I access java use bean object inside jquery ajax and pass it as parameter to servlet [closed]

I have below code in my jsp. I am trying to set my bean object with values and call my oracle database procedure to pass the bean object as parameter. However I am unable to user data: { 'p_param' = ...
-1
votes
1answer
47 views

WebApp + REST - Architecture Approach [closed]

I've been working on a big Java project that requires the following: One Web Application. One REST API that exposes the same data the web app consumes which will be required for those that don't get ...
-1
votes
0answers
18 views

how to create a SIP request with specific header fields values [closed]

I'm an intern at a telecommunications operator and my task is to create an application that enables me to send sip (session initiation protocol) requests with the header fields values that i specify , ...
0
votes
0answers
75 views

How to design extension mechanism for java app

I have an application where I have a set of core features. The application itself HAS to work in core only mode. I would also want to make the application extensible such that, when certain ...
-5
votes
0answers
94 views

Real world Programming [closed]

When starting a new project are design patterns useful way of coding for rapid prototyping (small scale projects) or are they for production (full blown projects) or for all cases?
-2
votes
0answers
49 views

Why clone and finalize methods are protected in Object class [closed]

I would like to know the reason that why java designers made clone and finalize methods as protected. What could have gone wrong if the methods were public instead of protected .
0
votes
0answers
7 views

Select design pattern - user stage [duplicate]

I'm struggling to point a finger into the right design pattern. I have a web site which user can register and interact with the system. I want to add the following abilities to a user: Each user ...
0
votes
3answers
151 views

In Java, what are some good ways to separate APIs from implementation of *entire projects*?

Imagine you have a software module, which is a plugin to some program (similar to Eclipse) and you want it to have an API which other plugins can call. Your plugin is not freely available, so you want ...
-1
votes
1answer
69 views

What is the recommended way to go about porting large code bases? [closed]

I am currently porting a large library (150+ files, 15k+ LOC) from Javascript to Java. Fortunately, the original library is already very object-oriented, so this has largely been a matter of ...
-2
votes
0answers
41 views

Building a ticketing website [closed]

I am a java developer, wanted to develop a website for ticket booking. As am strong in java and related web frameworks but am unstable in developing the architecture which should be simple and ...
0
votes
0answers
3 views

What method call in HttpsURLConnection actually sends the HTTP request? [migrated]

I am new to the HttpsURLConnection class in java, and looked on the doc and found it not very enlightening. I have inherited this code on a project I am working on (I did not write it myself) and ...
-3
votes
0answers
61 views

High level programming or event driven programming? [closed]

In your opinion, which do you find more effective, event driven programming or high level programming? Please explain your answer simply (I'm not a genius!)
0
votes
0answers
15 views

Best approach for storing banking information [migrated]

I am currently developing an auction desktop application. At the moment I am storing the buyer and vendor information in 2 separate tables within a MySQL Database. Currently the data for these tables ...
16
votes
4answers
515 views

How bad is it calling println() often than concatenating strings together and calling it once?

I know output to the console is a costly operation. In the interest of code readability sometimes it is nice to call a function to output text twice, rather than having a long string of text as an ...
-1
votes
1answer
102 views

Programmer Analyst vs Software Engineer [closed]

So I've heard the job title "programmer analyst" and "business analyst" thrown around for software jobs recently. How do the responsibilities of Programmer Analysts, Business Analysts and Software ...
3
votes
0answers
75 views

Does synchronization in java protect modified class fields? [migrated]

I saw this on Java's synchronization tutorial: public class SynchronizedCounter { private int c = 0; public synchronized void increment() { c++; } public synchronized void ...
-2
votes
0answers
24 views

how to read and write a ppm in Java [migrated]

I'm solving old exams. In Java, I would like to open an image file input.ppm, convert it to greyscale, and save it as output.ppm. So I have to read all its contents (RGB information for each pixel), ...
0
votes
0answers
89 views

How to convert a Java applet into a runnable jar?

I am a complete beginner to programming but I have managed to create a game as a Java applet. Can an applet be converted into a runnable jar file? If so, how ? Is there another way I can make my ...
2
votes
1answer
138 views

Structuring a storage system for a game

I am working on a multiplayer game, where a player has many storages to store items in. Storage Storage is the system that allows the user to deposit items, and take them back. Example of storage ...