Tagged Questions

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

-2
votes
0answers
60 views

any new languaje to learn? [closed]

I have experience with java,C, HTML-HTML5+PHP but i'm interested in learning a new lenguaje and stick to it, my interest is primarily videogame development but that also be good to any other app that ...
1
vote
1answer
31 views

Testing Java as Groovy

We're looking into improving our testing process for some of our applications, and the idea that's been put forward it to write unit tests in Groovy and automatically run them with Maven. The first ...
-4
votes
0answers
55 views

absolute beginner in programming, learning java [closed]

I am taking a class on Java programming. The textbook they made us buy is horrible. the book simply does not help are all. I am need to find a book that can help me understand java. Do any have a ...
1
vote
1answer
67 views

What design pattern should I use for status management for a file processing module

The background One of the functionality of a product that I am currently working on is to process a set of compressed files ( containing XML files ) that will be made available at a fixed location ...
2
votes
1answer
55 views

How to synchronize client and server model objects?

We have a client-server application with a thick client (GWT). There are client-side MVP presenters (MVC controllers) which hold references to some objects viewed in the GUI. Some user actions cause ...
-6
votes
1answer
164 views

How to Memorize Code? [closed]

Do you have any tips on how to avoid being overwhelmed by new code, especially if it's too long to memorize or to learn? I feel like an amateur when I keep on looking for references, but I know ...
0
votes
1answer
98 views

How to overload method

I completed part of an assignment to implement a method called runningTotal for ArrayIntList which adds the values in the array in succession, and replaces the values at each index with the new summed ...
-2
votes
0answers
89 views

Improving code design [closed]

I completed a group assignment for a Java course, but due to deadlines I was unable to really make it as clean as I would have liked. Since its over now and I have submitted the assignment I would ...
5
votes
1answer
92 views

Name convention for Reader and Writer [closed]

I'm trying to name a component that will be capable of both reading from an InputStream (file or otherwise), and writing to an OutputStream; thus serving both as a Reader and as Writer. So far the ...
4
votes
2answers
120 views

JavaEE server experience matters for a developer?

Lately I am seeing quite a few application development job ads asking for experience with this or that Java EE server. I can understand this if it is for a server administrator, however I find it ...
1
vote
0answers
53 views

Is this an appropriate use of Mockito's reset method?

I have a private method in my test class that constructs a commonly used object. I verify the constructor calls someMethod, as this is important during the construction. I also supply some return ...
-3
votes
0answers
91 views

I am developing a simple software application which should print a output from user input.How to do it? [closed]

How to get output like this in java using forloop to a text file? digraph G { main -> parse -> execute; main -> init; main -> cleanup; ...
-2
votes
1answer
56 views

Quality assurance with java script especially node.js [closed]

We are building a kind of document management system as a web application. The system consists of two main parts, the backend, where users can add content and the frontend where the content can be ...
-4
votes
3answers
349 views

Java performance beats C++ and Assembly by a landslide [closed]

I am writing some small programs for a semester project that demonstrates the benefits of inlining assembly code into higher level languages (specifically into C++). I wrote a C++ program that uses ...
-4
votes
0answers
34 views

jsp, jstl , for loop [closed]

I have 2 lists questions(all the questions,length 3 ) and answers(all the answers, length 9) I want they to be printed in the following way: question0 answer0 answer1 answer2 question1 answer3 ...
-1
votes
1answer
59 views

Compile GPL-code into a JNI-capable shared library and use it in commercial software [closed]

I am developing an application for Android in JAVA which calls GPLed C-code via JNI. I have modified & capsulated a GPL-software under a JNI-interface and compile it as a shared library (.so) ...
1
vote
1answer
50 views

Java Xml intraction in Android

I'm working on Android application development. There is a question that always comes to my mind that: How XML interacts with Java code?. I mean Button inside XML is a view, but Button inside Java is ...
-7
votes
0answers
119 views

which is the best programming language for developing a GUI software? [closed]

Comparing different programming languages available among the Java VB Python C C++ which among them is better than the other based on the following : Connectivity with others like an XML file, ...
6
votes
4answers
248 views

How to use Dependency Injection in conjunction with the Factory pattern

Consider a module that is responsible for parsing files of any given type. I am thinking of using the strategy pattern to tackle this problem as I have already explained over here. Please refer to the ...
2
votes
1answer
73 views

Any resources or books to build VNC client [closed]

I am very interested in network programming and I want to build a VNC client for fun and for learning purposes. I have been Googling for resources about VNC client and server, but most of time, ...
-2
votes
1answer
102 views

What is the best way to continue in java? [closed]

Im now at the end of the "HeadFirst Java" book. I will finish it in a few days, and i start thinking what i should do next to be more advenced in java. i thought of the "java how to program" book, ...
7
votes
2answers
146 views

The suffix Exception on exceptions in java

Specifying a suffix of Exception on exception classes feels like a code smell to me (Redundant information - the rest of the name implies an error state and it inherits from Exception). However, it ...
3
votes
2answers
82 views

Domain Services as facades

I read .NET Domain-Driven Design with C#: Problem - Design - Solution and I noticed that the author created a domain service for each aggregate root. However, the domain services were only facades to ...
2
votes
2answers
57 views

Template method within one class without subclasses or inheritance

I have an algorithm with mostly invariant parts that needs to be reused within one class so as to stay DRY. Code duplication with repeating method structure public void save(String key, int value) ...
-1
votes
0answers
44 views

Great source code to learn from? [duplicate]

I have recently been reading through the Java Collections source and its a great learning experience, with great documentation too. It has a good mix of problems to solve from sorting algorithms, ...
2
votes
1answer
182 views

Unindented elses

Been writing code since about 18 years now. Lately, I've got into the habit of not indenting elses and when I look at the code it does worry me a bit mostly that someone who might look at the code ...
0
votes
1answer
125 views

What is meant by Distributed Systems Coding interview questions

I was told that I will be asked coding questions in my interview and that the context will be related to Distributed Systems (I took ONE Distributed Systems course and I don't even remember much from ...
2
votes
1answer
155 views

Effective Java for experienced Java programmers?

I own and read 'Java Puzzlers', 'Clean Code' and GOF's 'Design Patterns' and more specific technology books however I have not yet read 'Effective Java'. Whenever I see a list of must read books I ...
0
votes
0answers
13 views

Problem adding close operation to a JButton. Java [migrated]

I'm having some trouble figuring out how to make a JButton prompt the user to save the contents in a JTextArea before closing the program. So far, I have some code for the close operation for my ...
2
votes
1answer
269 views

Why isn't Java being used for web multimedia applications?

I've been focusing on multimedia applications and I've noticed that most applications don't use Java in the back end. Instead, I see solutions with PHP/ROR/Python and Flash/Silverlight without any ...
2
votes
3answers
323 views

Checking “instanceof” rather than value using a switch statement

Is there some syntax (other than a series of if statements) that allows for the use of a switch statement in Java to check if an object is an instanceof a class? I.e., something like this: switch ...
-4
votes
1answer
75 views

iOS development career and what frameworks, topics are important to master in iOS [closed]

I am currently working on iOS platform for developing iPhone and iPad apps from last 6 months and have worked on some apps. I started as a Java developer but got shifted to iOS as my employer wants me ...
-2
votes
0answers
27 views

how to find class index of the dataset in Clustering with java coding? [closed]

how to find class index of the dataset in Clustering with java coding ? How to find precision and recall using EM Clustering algorithm in java ?
-5
votes
3answers
129 views

how to prove TDD is best compared to code inspection [closed]

I want to know how to prove TDD is best compared to code inspection in terms of time and cost.
-6
votes
0answers
37 views

sample library management system application in java [closed]

I am working at a simple library management system application in java. I put it in here to tell me about it defects and Flaws. thanks for Advice enter link description here
0
votes
0answers
8 views

Reading Excel file using apache poi and storing them into arrays [migrated]

I'm new to the world of programming. well, im trying to read a excel file (5 rows, 5 cols)using apache-poi library. I have actually two implementation of the same problem. In the first code snippet, i ...
5
votes
3answers
212 views

Generic file parser design in Java using the Strategy pattern

I am working on a product in which the responsibility of one of the modules is to parse XML files and dump the required content in a database. Even though the present requirement is only to parse XML ...
0
votes
0answers
20 views

Generic file parser design in Java using the Strategy pattern [duplicate]

I am working on a product in which the responsibility of one of the modules is to parse XML files and dump the required content in a database. Even though the present requirement is only to parse XML ...
0
votes
1answer
29 views

Dynamic items on JavaFX interface

I am looking to build an application similar to Blocky. For that I will be using JavaFX. I am working on prototypes atm. It appears that JavaFX UIs are generally made using Scene Builders. I am still ...
-2
votes
0answers
72 views

Money Investment Web Platform - Best Programming Language/platform [closed]

I will develop an investment web platform, and I'm concerned with security, database etc. I've a short period of time to develop this application. What's your opinion on the proper language, ...
15
votes
10answers
2k views

How to write useful Java programs without using mutable variables

I was reading an article about functional programming where the writer states (take 25 (squares-of (integers))) Notice that it has no variables. Indeed, it has nothing more than three ...
-2
votes
0answers
34 views

Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class [closed]

Ok, so I have a bunch of classes and I'd like to rotate an object which has an object shape, which is a 2d array and that's constructed in the parent class of the object class. I want to change the ...
-2
votes
1answer
256 views

Has Java's reputation been permanently damaged by recent security exploits which have targeted applets in the browser? [closed]

I have to build several small(ish) business applications for various purposes. Primarily for myself but I would like to have the option in the future of selling them to other companies. Since I use a ...
-3
votes
1answer
135 views

What JDK use at work? [closed]

In my current position using Java as main language, and the truth is that I am an open source fan. Unfortunatelly, our programs cannot be licensed under a GPL-like license. In any case, we keep in ...
-4
votes
0answers
41 views

REG: will testers involves in coding? [closed]

What is automated testing? will automated testing guys involves in coding?
-4
votes
0answers
148 views

Java Programming Assignment. The Employee class [closed]

It is a common practice that in a business place employees get salary raise based on different criteria such as the position of the employee, job performance, department budget, sales proportion (if ...
4
votes
5answers
388 views

Database connection - should they be passed as parameter?

We have a system whereby the database connection is get once using a common method, and being pass throughout the relevant class to be used. There are doubts that passing the database connection as a ...
1
vote
1answer
78 views

Handling error message for a Spring MVC login form

This can apply to many error handling scenarios, but I'm curious about how to do it in a login scenario. Given this Spring controller method: @RequestMapping(value = "/account/login", method = ...
0
votes
2answers
124 views

Unable to convince on data hiding

I am working on a Selenium + java project where all Web Element in a class are declared as - public class CheckoutPaymentConfirmpage extends WebPage{ public final Button btnPrintorder = new ...
0
votes
2answers
108 views

How to solve circular package dependencies

I am refactoring a large codebase where most of the classes are located in one package. For better modularity, I am creating subpackages for each functionality. I remember learning somewhere that a ...

1 2 3 4 5 32