32,199 Topics

Member Avatar for
Member Avatar for cakka

Hello, what is the meaning of System.exit() ? if System.exit(0) = close the program without error But, what is the meaning of System.exit(1) ? Is there is any System.exit(2), System.exit(3), etc ? Thanks you

Member Avatar for ~s.o.s~
0
164
Member Avatar for Pyler

I'm trying to create a list stack that implements some interface called SomeList The list stack should only use stack with no links. the itnerface has a number of methods that I would like to implement. So for SomeList I have something like public interface SomeList<T>{public void plus(T something);public E …

Member Avatar for JamesCherrill
0
406
Member Avatar for andre.hamraee.75

(Total Sales) Use a two-dimensional array to solve the following problem: A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each type of product sold. Each slip contains the following: a) The salesperson …

Member Avatar for JamesCherrill
0
346
Member Avatar for Lavanda

/* * GUI Electric Bill Program */ package guielectricbill; //import the package to do GUI input/output import javax.swing.*; public class GUIElectricBill { public static void main(String[] args) { // declare variable to store user input String accountNumber, customerName, address; int KWH; double amountDue; // Welcome customer to the Electric Bill …

Member Avatar for JamesCherrill
0
330
Member Avatar for COKEDUDE

Can someone please tell me why I keep getting a stack overflow when I try to create nodes in a priority queue? class Node { public int frequency; // data item (key) public char character; // data item public Node leftChild; // this node's left child public Node rightChild; // …

Member Avatar for JamesCherrill
0
419
Member Avatar for anisha.silva

Hi, How do i debug an eclipse plugin project? When I go to the MANIFEST.MF file- > Testing section - > Launch an Eclipse application in Debug mode,it starts debuggin the worspace code. I havent any breakpoints in the workbench code. how to i avoid this. appreciate a response thanks

Member Avatar for anisha.silva
0
230
Member Avatar for Benjamin_4

i want to get the value for Accumulation but it returns no value. Any help with resolving it will be appreiated private double getAccumulation(){ double Accumulation = 0; double Monthly_Depreciation; int Estimated_Useful_Life = 5; double Cost_Of_Acquisition = 2000; double Estimated_Residual_Value = 500; try{ Monthly_Depreciation = (Cost_Of_Acquisition - Estimated_Residual_Value)/Estimated_Useful_Life; Accumulation += …

Member Avatar for Benjamin_4
0
300
Member Avatar for Violet_82

Hi all, as much as I don't like the API, it is becoming more and more important for me to start using it. I think I might need a guide of some sort which says what's what and what's where, if anybody has one please let me know. Today I …

Member Avatar for JamesCherrill
0
146
Member Avatar for nikolaos

In the following example two threads share int counter. The increment_thread thread increases counter by one . The decrement_thread thread decreases counter by one . I use semaphore to control access to counter instead of making the two methods synchronized. Is this the proper way of using semaphore? When should …

Member Avatar for nikolaos
0
385
Member Avatar for sehrish_1

i want to develop a web base project. if any one have some web based project names plz give me.

Member Avatar for JamesCherrill
0
119
Member Avatar for Zdneth_1

Hello Professionals out there, i am making a point-of-sales systems in java. And i have a jTable named "tbitempurchase" wherein I add the ordered items using an add button.I also have a table in mysql database named "itemSold". Now my problem goes like this, I want to insert the data …

Member Avatar for JamesCherrill
0
1K
Member Avatar for el macho

hi guys, i try write this java code in php using php java bridge: http://www.lucenetutorial.com/lucene-in-5-minutes.html when i found this line: IndexReader reader = DirectoryReader.open(index); i dont get it how to write it in php. i've tried but error result. when it be like this: Query q = new QueryParser(Version.LUCENE_40, "content", …

Member Avatar for LastMitch
0
2K
Member Avatar for anisha.silva

Hi, Not sure if this the correct forum to post this question. I would like to know how to implement code completion for an editor in the eclipse plugin project. I created a multiPageEditor and now I am tring to implement code completion. I was not able to find a …

Member Avatar for anisha.silva
0
279
Member Avatar for mbocks01

Goodday The first random number working set is a set of 3 different integers from the range 2 to 7 The second random number working set is a set of 4 different integers from the range 4 to 22 Each of these working sets may be generated as many times(at …

Member Avatar for Proxet
0
180
Member Avatar for Nooshin Z

Hi every body I want to build a graphical user interface for my project and i need to provide the facility for the user to draw as many as some predefined shapes (rectangles, ovals, ...) as she wants and connect them with lines. she should be able to delete the …

Member Avatar for JamesCherrill
0
132
Member Avatar for Gobumanikandan

Hi I have a three folders i have compressed all the folders using jar. I want to access one of the java file inside jar file that is actually inside one of the folders to start the application.

Member Avatar for JamesCherrill
0
277
Member Avatar for woomar

Hi. I was wondering how I could replace objects in a list without using a single loop. Here's what I have in terms of algorithm; but, I don't know how to implement.: replace(List list, oldObject, newObject) 1. if the first element in list is not null 2 if the old …

Member Avatar for woomar
0
240
Member Avatar for murali2489

Dear All, I have studied in my book that after compiling the RMI server it will produce two Class files RMIServer_Skel.class RMIServer_Stub.class But I have succesfully ran the RMI server and made the client connection, but i could not find any Stub or Skeleton files in my workspace. Why is …

Member Avatar for murali2489
0
195
Member Avatar for viphilar

Hello all - I am writing a Depth First Search program in java for the eight puzzle problem. I have completed the coding but for some reason I am not able to print the exact depth at which nodes are being searched. Here is two of the methods that does …

Member Avatar for maxbummber
0
942
Member Avatar for Benjamin_4

I am writing an asset monthly depreciation system and i have written a code which works but i want to set the values such that the user enters the value manually into the system. Currently the values have been declared with a variable. this is my code // declare an …

Member Avatar for Proxet
0
189
Member Avatar for shan92

Hello, i just started learning android and i thought to make a simple app by providing a simple rtmp url si i can play the video on android device but i cannot fine suitable tutorial to start with i tried following this link http://www.jwplayer.com/blog/24717/jw-player-59-html5-now-default-on-android but its not online anymore thank …

0
90
Member Avatar for andrewriebel
Member Avatar for mk12345
0
196
Member Avatar for andrewriebel

Hello, all. I'd greatly appreciate some assistance in getting this program working properly. Thank you!

Member Avatar for JamesCherrill
0
151
Member Avatar for Zet_

Hi guys I want to develop a pattern recognition system for my final year project. The system will be an interface between a blind person and a mute person; I have chosen android platform for the system as most smart phones use it. I want the smart phone to use …

Member Avatar for JamesCherrill
0
219
Member Avatar for murali2489

Dear Team, I have decided to prepare for Oracle certified Java Programmer certification. When i searched in Oracle site, It showed two certifications for OCJP. 1. 1Z0-851 (Java SE6) 2. 1Z0-804 (Java SE7) For the the second exam which is 1Z0-804 they mentioned, we need to pass two exam first …

Member Avatar for murali2489
0
175
Member Avatar for seanbp

The server only does the basics. TODOs: The header method needs expanding. The file send method can't handle too large files. Maybe write custom buffer class since some buffering is done. Keep cache of recent files.

Member Avatar for JamesCherrill
0
1K
Member Avatar for ankit.pandey3

Hi Friends I want to convert "Mon Oct 28 11:30:58 GMT+05:30 2013" Format to "2012-11-27T18:08:47.410+05" in Java. I dont know how to do it. Please help. Thanks in advance

Member Avatar for stultuske
0
209
Member Avatar for armani05

Hi just wondering if anyone can advise why this is not working and offer a solution, I am new to java. Thanks in advance for any help. Print Pattern Feature The “print pattern” feature should function as follows: The user should be prompted to enter the following input values: ! …

Member Avatar for stultuske
0
360
Member Avatar for ZombieKnight93

I have to create a quadrilateral program for school where you put in two points and find the area. For the Public double getArea() part it says "return type double is not compatible with void" How do I fix it? Main class public class Point { double x; double y; …

Member Avatar for Schol-R-LEA
0
635
Member Avatar for kay19

Hello. Just learned about hashmap a week ago. My code can add an Employee's name/id/performance scale based on user input. I allow the user to also remove an employee by allowing user to input name/id to remove. However, when the user prints out sorted last name, the name the user …

Member Avatar for kay19
0
149

The End.