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.
0
votes
0answers
31 views
How to find method and class usages along git repositories
We got some code in a git repository that's used along different projects (with git different repositories), the problem its's that we got now so many different projects that's difficult to track ...
2
votes
2answers
67 views
Migrating Web based projects from Java to PHP
At our work place after hours of coding, testing and QA we have successfully added a couple of software tools in our product line. We specialize in web based software solutions so in order to tap on ...
1
vote
0answers
36 views
Is there any efficient Java solution/Algorithm to find values in a text field based on key string with delimiter?
Is there any efficient Java solution/Algorithm to find values in a text field based on key string with delimiter?
Example:
Rules:
I. Key: username Start-Delimiter: ; End-Delimiter: ;
Need to find ...
0
votes
2answers
47 views
Should a complex unifying class be doing computation?
I have a large application in Java filled with independent classes which are unified in a PlayerCharacter class. The class is intended to hold a character's data for a game called the Burning Wheel, ...
-2
votes
1answer
59 views
Programming advises needed? [closed]
Sorry if i am posting in the wrong place , this is my first time at this site ...
Today is my 7 months since i am learning Java , I have completed 3 books for Java till now
1.Java Software Solutions: ...
0
votes
0answers
8 views
remove duplicates in array using method [migrated]
Im trying to remove duplicates numbers from an array using method but, unfortunatly I could not solve it yet and this what I have done so far..
//method code
public static int[] ...
-1
votes
0answers
32 views
GIS and Java Career [closed]
I have been a GIS Analyst for over 10 years and currently studying java (50% through the course). My plan is develop GIS applications manly focused towards open source solutions. I would like to ...
1
vote
0answers
22 views
Dependent Object Serialization
What's the recommended way to serialize dependent objects, especially when objects are being freshly constructed (to avoid malicious byte streams, or whatever)? For example....
After creating a ...
-2
votes
0answers
60 views
Is Maven Convention over Configuration?
Does Maven works through "Convention" or is it configurable by any means? I have been following placing the code under main folder and placing the tests under test folder. Is there a way to rename ...
0
votes
2answers
71 views
Best way to structure a Git repository for Maven
I need some advice on how to structure our projects in Git. We use Java and Maven is our build tool. Maven kinda assumes all of your projects have a common ancestor eventually. Maven can also be a ...
2
votes
1answer
36 views
Java MVC extra classes
I have a simple MVC project. My current packages:
gui
controller
db
domain
I want to put extra classes which I will use, e.g. md5 hashing, email validator (methods which I will use in more than ...
-3
votes
1answer
82 views
Casting from string to integer and the vica versa [closed]
I am trying to cast in Java from string to integer and the other way around but the compiler is complaining about this.
My question is: Is this the matter of compiler or Java programming language ...
0
votes
0answers
40 views
Maximum flow and minimum cut undirected graph java
I need to implement an algorithm where I find the maximum flow and the minimum cut of an undirected graph and I cannot really find an algorithm for this. I have looked at the Ford Fulkerson algortihm ...
1
vote
1answer
25 views
MorphAdorner Licensing confusion
I want to use the MorphAdorner library available free for commercial use. But it uses several other libraries that restrict commercial use (like Gate etc). Can I use this library in my application?
2
votes
2answers
96 views
Entity to DTO Usage
Been trying to come up with a flow for a basic tiered web application, and have been reading conflicting information online. What I'm trying to figure out is if there is an advantage to still using ...
-2
votes
0answers
49 views
JavaFX Book | Learn JavaFX More In Depth [closed]
JavaFX is a constantly changing thing, but appears to have been mostly standardized by Oracle releasing most of it as open source (and the rest to follow very shortly), and JavaFX becoming part of the ...
-3
votes
0answers
69 views
Is it Wise to disconnect the ui layer from the backend in mobile web apps? [closed]
What's the future when it comes to mobile web development?
I mean, traditionally, in the java world, we make use of Java EE technologies such as Spring, Hibernate and some MVC framework like Spring ...
1
vote
1answer
39 views
Name of this algorithm (Create binary image)
Some days ago I saw in this site the algorithm below to convert color images to binary images and I used it in my application (with some small changes). However, I need to know what is the name of the ...
-3
votes
0answers
28 views
jdbcTemplate.execute(sql) hangs [closed]
I am using a simple piece of code to execute the sql.
If the sql executes a long time, then the program will hang on jdbcTemplate.execute(sql) even though the database finished the sql execution.
it ...
2
votes
4answers
188 views
Find the count of each word in a string
I am in a search of a better performant algorithm to implement a program, to find the count of each word in a sentence i.e.., a String in the programming sense.
I know my algorithm is too basic and ...
1
vote
1answer
75 views
Is there a tool that will list all dependencies of a method in Java?
Say I'm looking at some code and I see:
MessageDigestPasswordEncoder encoder = new MessageDigestPasswordEncoder("SHA-512");
Now, in that file I also see:
import ...
24
votes
13answers
998 views
Multiple Interfaces in Java - Good or bad
I'm coming out of an interview just now and the interviewer asked me if a Java interface can "extend" more than one interfaces. I was thinking multiple inheritance is disallowed in java so got that ...
-3
votes
4answers
322 views
speed/performance of image processing python vs java vs c [closed]
I have a project in which I take a handful of images and coordinates, and combine them all into a single image based on those coordinates. (so not really image processing, just image ...
1
vote
1answer
37 views
Way to allow inspection of java data model after exporting to file
I've refactored a program to remove its dependency on an sql database by storing all the state in a memory model. However the manager liked the ability to easily inspect the domain state just by ...
0
votes
1answer
38 views
Standard Java Error Reporting
I am currently working on creating a toolkit for work and I've gotten to the point where I'm wondering about error reporting.
Basically all of my tools, which consist of a grouping of classes, will ...
-1
votes
0answers
31 views
How do you convert a CSV file into a 2D array in Java or C++ [migrated]
My question title didn't fully outline my question. I have a text file that has many lines of data with each line in the following format:
a, date, b, c, d, Username, e, Description
a,b,c,d, and e ...
64
votes
18answers
4k views
Is it poor programming practice to pass parameters as Objects? [duplicate]
So, we've got a guy who likes to write methods that take Objects as parameters, so they can be 'very flexible'. Then, internally, he either does direct casting, reflection or method overloading to ...
-4
votes
0answers
59 views
What language / technologies are best suited for a survey? [closed]
My goal is to create an application that acquires some data , do some calculations on them then display some results .
I'm having a difficulty related on which language or technology I should use to ...
2
votes
2answers
106 views
MVC framework that uses classes instead of methods for actions
In most MVC frameworks, Controller class contains multiple methods, each representing one action. Then annotations and reflection is used to call those methods appropriately. But from OOP point of ...
-1
votes
2answers
41 views
Beans, DTOs, & Non-Internal Classes as Data in General - Acceptable or OOP-Murdering Antipatterns? [closed]
Am I not understanding encapsulation? What's with all this data out in the line of function-spaghetti disguised as one-method classes fire? Beans and DTOs are everywhere. Isn't it better design to ...
0
votes
2answers
138 views
VPS vs Web Hosting: Which one is good for java web services
I have some questions about VPS and web hosting.
As far as I understand, VPS is a virtual machine on which we can do anything as we can do with our local machine. Install software, change settings ...
-5
votes
1answer
54 views
Characters represented the first Java Applet? [closed]
Which of these characters represented the first Java Applet?
Mickey the Mouse
Duke the Duck
Snoopy the Dog
Tux the Penguin
0
votes
2answers
38 views
Overriding - Access to Members with Reference Reassignment
I have recently been moving through a couple of books in order to teach myself Java and have, fortunately, mostly due to luck, encountered very few difficulties. That has just changed.
I read a ...
-1
votes
0answers
184 views
Is there a reputation that C# and Java is for work while Ruby or Python is for fun? Why? [closed]
I heard this several times online or from colleagues. Many people use C# or Java at work-related project, but prefers Ruby or Python for fun or hobby-oriented projects. For example, in his blog post, ...
0
votes
1answer
131 views
Which Java IDE (if any) is preferred/mandated for professional developers? [closed]
I'm coming from a .NET background here and there are certain tools which most people use. As an example, most organisations I've worked in use Resharper and not CodeRush. This is actually quite ...
0
votes
1answer
101 views
Sorting an ArrayList by a Split Value [closed]
I am attempting to create an list which should be sorted by a particular field in a colon separated string. I have an array of strings with the following values:
name1:535
name2:697
After sorting ...
0
votes
0answers
133 views
Storing more than 85000 strings in ArrayList [migrated]
I don't think this question is asked before, there is some clues(google search) that ArrayList can hold any size of data if JVM allows it to. The thing is I need to store some url links in arraylist ...
0
votes
1answer
71 views
Defining a status between last check and now
I have sets of probing data from an internal monitoring tool which represent the availability of different services (databases, webservices and so on).
Now my task is to visualize this data and I ...
-4
votes
0answers
100 views
why do Oracle package up Java with the ask toolbar [closed]
The short answer is because they make money (I assume they get commission for every click?).
But it devalues the "brand" and annoys everyone who install its.
Is their any logical reason for Oracle ...
0
votes
0answers
56 views
Binding 2 Java clients thanks to a node.js server
I've got a node.js server, whose purpose is to let a Java application user first connect to this server.
Then a user of the java program, when connecting with this program to the node.js server, is ...
-4
votes
0answers
56 views
Photo facial detection + blurring of faces software development [closed]
So I am doing a little start up with a few other people. Our project requires facial detection + blurring of faces in photos. We are currently using cloudinary but their facial blurring is not good at ...
1
vote
0answers
81 views
Single write, multiple read of stateful objects
Scenario:
One data input feed (call this Source)
Multiple objects (call these Layer1) read this Source, and analyze the feed. This analysis is stateful.
Layer1 objects have configuration parameters. ...
-3
votes
0answers
26 views
best algorithm to retrieve relationship between each two XML consecutive elements
what's the best algorithm that identifies the relationship between each two consecutive elements throughout the reading of the XML file.
and What's the suitable XML Java API to do this algorithm
...
-3
votes
0answers
172 views
Simple Algorithmic Interview questions? [closed]
I will be taking some interviews for an intern position. And it will be a telephonic phone screen for around 45 minutes.
So I am looking for some simple algorithmic interview questions that I can ask ...
0
votes
0answers
27 views
Java multi catch exceptions errors [migrated]
I've checked this code several times and I cannot figure out why it's spitting back errors in regards to the catch statement. I'm aware that handling multiple exception with one catch clause is ...
1
vote
2answers
139 views
Decimal to 17-bit 2's Complement Signed Number
I am trying to convert decimals, (0.05, -0.28, 25.00, etc), to a 17-bit 2's complement Signed Number. The parameter data I am sending is SysEX Midi Data (to some external Synthesizer). The data ...
0
votes
0answers
59 views
Why is this the case? [migrated]
I was going through an AP Comp Sci practice test and found the following problem:
what is the output of:
System.out.println("1" + new Integer(2) + 3);
(Java)
The answer was
123,
I am confused as ...
-1
votes
1answer
40 views
ASP.net extended with client side operations [closed]
What is the best way to "extend" my ASP skill set to include more client side orientated actions. I am developing the growing need to do things "faster" , without post backs... I am talking about UI ...
0
votes
0answers
41 views
Sonar Performance - Static inner class of Type Token [migrated]
Sonar says "Performance - Could be refactored into a named static inner class The class DataServiceImpl$2 could be refactored into a named static inner class".
paramsClass1.add(new ...
-7
votes
1answer
56 views
Deployment of java web application on internet [closed]
I have developed an web application in java using Apache tomcat server and MS sql database. Its working fine in offline. I want to deploy it online.
Apart from purchasing domain name, how to deploy ...




