Tagged Questions

Initial help New to Java - need help to get your first Java program running? See the Oracle Java Tutorials section on Getting Started. Before asking a question, use the search box in the upper right corner to see if it has been asked before by others (we have many duplicates), and please read ...

learn more… | top users | synonyms

0
votes
0answers
22 views

what vnc server and web client for students to program in java/eclipse?

Next week I am teaching a java course at the local university. As I found out recently, a lot of students face problems when they need to set up eclipse. By Murphy's law, I would like to offer ...
4
votes
5answers
194 views

Asserting in public methods

I'm a fan of using assertions in the code to check for preconditions. The question is whether is it wise to use assertions in public methods to check the precondition? My personal opinion is, that if ...
2
votes
0answers
142 views

what is the meaning of 'static' in a method header? [migrated]

I want to understand what does the word 'static' do in the 'writeNumbers' method header?: public class DisplayClass { /** * @param args */ public static void main(String[] args) { ...
6
votes
2answers
352 views

Eclipse runs my java program 6 times faster… Can I achieve this performance without using it?

I've written a java program that generates all repetitive permutations based on the characters and the length given. When I execute my code in Eclipse, it generates a file with 1,000,000 permutations ...
0
votes
0answers
17 views

how do i write a batch file that i already have made to a specific directory in Java? [migrated]

I am trying to make this program that will write a file to the users computer but am having trouble really, I want to write a file called desktop.bat that I have to the c:/ directory but it doesn't ...
2
votes
0answers
86 views

Why GWT .. what are the advantages? [closed]

Possible Duplicate: What are proven advantages of tools like GWT over pure JavaScript frameworks? When should we decide to use GWT, what are it's advantages over normal web app design with ...
3
votes
2answers
192 views

What are proven advantages of tools like GWT over pure JavaScript frameworks?

GWT is a software stack that translates Java code and a sub-set of the Java Runtime's class library to JavaScript code. In comparison with JavaScript toolkits, GWT can seem alienating, by nature and ...
-4
votes
1answer
84 views

Why is Java web development not as prevalent in social media as opposed to enterprise? [closed]

I am learning and teaching Java at the moment but my goal is to develop websites and web applications especially sites that can attract people such as social networks, etc. I am not sure about Java ...
-4
votes
2answers
56 views

How to get rid of duplicate entries in a comma separated string in java? [closed]

I have a string places="city,city,town". I need to get "city,town". Basically get rid of duplicate entries in the comma separated string. places.split(","); will give me array of String. I wonder, if ...
12
votes
4answers
140 views

How to start with open source?

I'm working as Java junior developer for about a year. On work I'm using Eclipse IDE. It's open source and I like it very much, but there's still a lot of bugs & stuff that could be improved. I'd ...
7
votes
1answer
122 views

What are the main bottlenecks to know about Java portability?

Java is known to be portable; "compile once, run anywhere". I know this is often true because I have many times deployed jar or war without any cross-platform troubles. Still, I am left wondering if ...
-4
votes
4answers
109 views

How to master Arrays and Strings [closed]

I'm a freelancer now, trying out for a programming job. I faced a lot of interviews and many interviewers asked me the very first question to write programs on Arrays and Strings in Java. Problem is ...
4
votes
2answers
169 views

Why does Java define homogeneous methods in Matcher and Pattern classes

I wonder why java defines homogeneous methods in two distinct classes: java.util.regex.Pattern and java.util.regex.Matcher. For example split method defined in Pattern class and replaceAll method ...
5
votes
1answer
148 views

Why do Java's Iterator and ListIterator point between elements?

The Javadoc for ListIterator says: A ListIterator has no current element; its cursor position always lies between the element that would be returned by a call to previous() and the element ...
1
vote
1answer
49 views

Best practice for combining a Java Applet/ Android interface?

I'm working on an online game, which I am seriously considering writing a Java Applet for it. The game is not overly complex on the features. I'm considering at some point having at least 3 versions ...
0
votes
0answers
69 views

Debugging in NetBeans [migrated]

I have a program which uses the Robot class in Java to automate a bunch of keypresses and clicks. The problem I am encountering is not being able to set breakpoints on certain methods to debug because ...
2
votes
3answers
62 views

Exporting huge data into XLS in a web application

I am developing a web application in Java/J2EE, in which I have export functionality. I have used Jasper for the same. The issue is when trying to export a huge set of data it is consuming a lot of ...
-3
votes
0answers
26 views

Access name of people in particular area from facebook [closed]

I want the name of people from their Facebook profile, who have the same sport interests in a particular location. I am doing this in Java and the Android SDK. Which graph API will help me to search ...
-1
votes
0answers
29 views

jsf vs gwt for web development (mobile API and web application) [closed]

I am Blackberry developer so I want to learn web as well so what best platform I can use to web development? It is not necessary to be jsf or gwt. And what's needs of every platform to learn?
1
vote
2answers
170 views

What should Competent Java programmer Be Able To Do? [closed]

To call yourself a competent Java programmer, what should you expect of yourself and what should others expect from you? Does anyone have ideas for a project or problem that would help measure ...
-3
votes
3answers
74 views

how the streaming from PC to Mobile works [closed]

I have been trying to create an Android app that streams music and video from a PC to an Android device. I am not dreaming and concentrating on high end earnings. This is for learning purpose (I am ...
4
votes
4answers
280 views

Should I use Legitimate Email spoofing?

Recently I receive a request: users' emails are stored in the database, and as request of a user, the system will send an email on their behalves. To add more context, it's like sending an email from ...
-1
votes
1answer
63 views

Java certification Path do Java 7 Programmer [closed]

Do I need to do the 1Z1-803 exam before apply the 1Z1-804?
5
votes
4answers
95 views

Problems of multiple threads sharing/accessing the same data

I have been researching into when data is being accessed or shared by multiple threads within Java. And looking into the problems such as: Thread Interference Memory Consistency Deadlock Starvation ...
-2
votes
0answers
20 views

Communication with GSM modem using java code through comm port [closed]

I want to communicate with external hardware GSM modem device using java code. I have imported all classes and packages required for communication. Am still only able to detect the comm port but ...
5
votes
3answers
298 views

Who extends interfaces? And why?

AFAIK, my class extends parent classes and implements interfaces. But I run across a situation, where I can't use implements SomeInterface. It is the declaration of a generic types. For example: ...
2
votes
1answer
81 views

Java or Python for Google App Engine not knowing either language?

I have a few project ideas that I'd like to deploy on GAE. I'm interested in developing a logging application for amateur radio contacts, shortwave, and utility monitoring. More complex projects ...
-2
votes
0answers
66 views

OOP or dynamic programming? [closed]

I'm 16 years old and I love programming, so I decided to learn C, but found it would not make money with this language, so I chose Java and am studying by myself with the book Java How to Program - ...
9
votes
11answers
851 views

Is Object Oriented stuff really that important? [closed]

For years, I have been doing Algorithmic stuff, writing scalable data structures for internet search, for example Randomized Binary Search Trees for Auto Recommendation, BitMaps, Wisdom of Crowd based ...
4
votes
2answers
159 views

Why doesn't java use a radix sort on primitives?

java.util.Arrays.sort(/* int[], char[], short[], byte[], boolean[] */) is implemented as a 'tuned quicksort' rather than a radix sort. I did a speed comparison a while ago, and with something like ...
2
votes
8answers
226 views

Java editor/IDE for beginners? [closed]

I teach some beginners the fundamentals of Java these days and they need to see the output for their small programs such as Hello world, etc. I need basic editor that contains code highlighting and ...
8
votes
3answers
118 views

Is it better to use assert or IllegalArgumentException for required method parameters?

In Java, which is more highly recommended, and why? Both types will throw exceptions, so in that regard handling them is the same. assert is slightly shorter, but I'm not sure how much that matters. ...
-2
votes
2answers
92 views

can I move to Java development job after having 2 years experience in SQL development? [closed]

I'm currently working as an SQL developer in a level3 company since 1.4 years. I wanted to be a developer in Java domain but of some prob landed in the current job, so will I get a job in Java ...
0
votes
0answers
40 views

Java retreive file size from the inpustream [migrated]

The client receives data from the socket and listens to the inpustream. And the problem is that the server it sends two items true the socket connection. The file it self The size of the file My ...
1
vote
4answers
297 views

Where to use C++ today? [closed]

Possible Duplicate: Is there any reason to use C++ instead of C, Perl, Python, etc.? When to use C over C++, and C++ over C? I am going to enter university next fall in computer sciences, ...
-1
votes
0answers
51 views

Notepad Application using Java Swing [closed]

I'm currently working on a notepad app. Here i want to display total number of lines and total column numbers in the status bar. So how can i display it by using java? Can any one please help me out ...
0
votes
0answers
14 views

Java Binary Search Tree implementation problem.! [migrated]

I am developing a binary search tree in java. But i am facing certain difficulties in it. Here is the code class Node { Node left, right; Integer data; Node(Integer d, Node left, Node ...
2
votes
3answers
70 views

Raise a ticket to issue tracking from external web application

I don't know if it's the right place to post this question but, to improve my productivity I need to install an open source issue-tracking system to keep tracks of all bugs and information about the ...
0
votes
0answers
109 views

What is the difference between public int and int in Java? [migrated]

I've only started to learn Java (I'm a student, and C++ is the base langauge I know best) and I've come across access and modifiers. In code I've seen the use of public int NAME; // and int ...
0
votes
1answer
212 views

What is a reasonable number of threads for a Java program?

In Java (or probably most other languages targeting the JVM) what is a reasonable number of threads to use? Presumably, this will be expressed as a ratio to the number of cores/processors available, ...
5
votes
2answers
90 views

What parts of Java do I need to learn for specific software projects?

I'm starting a 12 week Java course next month through my local junior college. I'm starting from square 1. I have a basic understanding of OO and Java will be my first OO language. My Google-Fu ...
4
votes
3answers
94 views

Why multiple calls to same classes' Constructor from within a Constructor wouldn't work?

Please have a look at following snippet: public class Foo { int digit; String name; Foo (int d, String n) { this(d); // cannot do following. //compile-time error: Constructor call must ...
4
votes
2answers
146 views

Asynchronous Java

I'm wondering if I wanted to implement a web service based on java that does web analytics, what sort of architecture should I use. The actualy processing of the Big Data would be done by Hadoop. ...
1
vote
1answer
26 views

Releasing patches and updates to web service users

I have written one web services using Java. Its already live (Up & Running). During development I have SVN(repository) + Jira for task maintenance + Maven for building the web services. Now i ...
-2
votes
1answer
69 views

Distinguish relative paths from paths [closed]

Many times, in code, you have to distinguish relative paths from absolute ones, e.g.: (example in java, new File(File root, String dir) constructs the <dir> subdir of <root>) File ...
5
votes
1answer
51 views

Use of a profiler tool to aid in the analysis of a brute force algorithm in Java

I was asked to profile (using some tool, such as YourKit or JVisualVM) a couple of implementations of the Traveling Salesman Problem (find the minimum path that visits all the given set of cities), in ...
1
vote
4answers
172 views

Should a novice programmer learn several languages at once? [closed]

Possible Duplicate: Is it worth being computer languages polyglot? I am half way through my first year at university studying computer science. I have been learning Java on the course and ...
-2
votes
0answers
41 views

How you can increment an alphabet in java and ftl? [closed]

i have to increment alphabet in ascending order , like this/ A.Data B.Data C.Data
2
votes
6answers
179 views

Enterprise scalable vs internet scalable, what is the meaning & differences?

While reading about Java EE applications, somewhere I have seen people saying they're enterprise scalable, I am confused as to what that really mean? Are Java web applications mainly written & ...
5
votes
3answers
130 views

How to Determine Frequency (In Hertz, Real Time) with Java Sound

I've been looking around and I've found some questions similar to mine but have never been quite satisfied with the answers. I'm more or less a Java n00b, although I am moderately proficient with C++ ...

1 2 3 4 5 21