I'm looking for a reliable way to convert from String to BigDecimal for a web-app running in several countries...
- new BigDecimal(String arg0) doesn't work for me since it must always use ...
I am working on th CPU scheduling and got stuck on this one.
I finished FCFS, but for SJF, in easy way, I am thinking about sorting numbers in the input file.
let's say.
I have these inte...
hi every body, I have changed the codes in LinearArray but it's not compiling in the LinearSearchTest:
can you please help find out if i did the changes right or not. below is the error mess...
I want to implement JAVA multi threads, As I understood, there is two ways to do that
1-Implementing Runnable interface and
2- extending Thread class
I wondering which approach is b...
Hey,
I was trying to find some answers and examples to the question about multiple inheritance in Java, after looking through the questions that were here, learned that the only way ...
I want to use use javax.swing.ProgressMonitor
but the API doesnt seem to give you the ability to make the Dialog that pops up Modal.
I 've seen other proposed solution to this question b...
Hi Experts,
Please help me out in figuring out this logic. I am just doing it for practice purpose. I have few notes in the Database, I want to fetch these notes and sto...
Hi there. I've been working on this computer for over a week now and cannot find out what is causing java to fail when it installs. The message is as follows;
"Windows Installer
The install...
is there a method that can take n digits from an int in java?
say I have 1239128378123 and I want to take the 3 digits of the most right digit so I would get 123...
This is the text:
Class DataDecoder should contain the following method:
String bitsToString (String input, int bits)
which takes a binary string as generated by
DataEncoder.stringToBit...
I have a Core Java application which has the following structure
DmsOperations
src: contains the source code
classes: contains the compiled classes
lib: jar files
resource: con...
I have created the below code
if my input is a + the binary code would be 101011
My probelm is that I want it to be 8 bits. So it should be 00101011 instead. What would be the right way ...
How do I remove the four last and the four first characters in a string?
I have a cylinder that is moved over time using a position interpolator. I wish to find out what the coordinates of it are at any point in time. I have read I may need to use a raster for this...
I am developing a simple online store and would like to upload product images to be displayed with the item information. Where is the best place to store the actual images? In a MySQL table?...
using hibernate annotation how i use/execute query of left outer join?
I have turned on setCellSelectionEnabled in my JTables so that when you click on a JTable the cell you have clicked on becomes highlighted. After I have initially clicked on the cell to highl...
I have a string stored with the carriage return. In same cases I need to select that string but without the carriage return. What is the best way to remove it? Do I need to do it in 'select' s...
I've already implemented a HttpSessionListener to my web application.
Whenever a user logs on to their account on my website, I take the session ID and save it into the DB as the user's ses...
I am trying to create smart combobox in my swing application. It follows the keystrokes as the user types and displays only the related contents from its list. This should update if the user h...
Hi, I know this a bit cheeky asking this but could someone help with a java assignment. I have had one of those weeks at work and just havn't had a chance to look at it.
If you can thanks!!
...
I am trying to write a simple function to validate string data to insure that it contains only valid numeric data. For example, all of the following values must evaluate as being valid accordi...
Okay I'm creating an inner class that satisfies the following requirements I have also attached what I have coded thus far. I was wondering if someone could tell me if I'm on the right track a...
Hi,
I would like to copy a file from one dir to another and preserve the permission.
On unix, after the file is copied, the permission is not preserved.
thoughts? I'm using FileOutputSt...
Hello,
I'm using JFreeChart for plotting XY Series Charts.
I want to draw a string or a label at some position on the plot,
how can I do it ?