32,204 Topics

Member Avatar for
Member Avatar for back2grave

Hi, I'm completely new to java. I'm trying the tackle this following scenario. For e.g. I've a list of “Tasks” and their dependencies. E.g. Task D depends on (Task A and Task B) , Task A depends on Task B, Task B depends on Task C. I'm trying to write …

Member Avatar for quuba
0
89
Member Avatar for Agent Cosmic

What I want to know is the difference between the development, scalability and cost of ASP.NET(C#) and Java. I know that in most cases Java is slower than C#. But how much slower? I also know that to run .NET we need Windows(excluding Mono). Will the cost of the license …

Member Avatar for kvprajapati
0
140
Member Avatar for KrishnaDas_003

I want to develop a java application for converting indian time to any world time. I also want to include the daylight saving also. Can anyone please tell me the algorithm to convert indian time to world time?

Member Avatar for masijade
0
102
Member Avatar for Mattpd

Sorry I couldn't think of a better title, but thanks for reading! My ultimate goal is to read a .java file, parse it, and pull out every identifier. Then store them all in a list. Two preconditions are there are no comments in the file, and all identifiers are composed …

Member Avatar for SasseMan
0
149
Member Avatar for CF019

Hi guys, First off I would like to mention that I am not an experienced Java programmer. I've been programming for about a year and taken one AP level course in high school. With the exam in a few days, I was wondering if anyone could clear something up for …

Member Avatar for JamesCherrill
0
117
Member Avatar for Nextopia

Hello, i'm looking for someone who can do a GUI, Event handling and Mouse Events. You need to have an understanding of UML as well. It's not a relatively big task but i can pay between £20 - 40 for it.

Member Avatar for jwenting
-2
114
Member Avatar for vitroblue

hello i need to send and get one char from serial port but i'm making a mess of it so i kept reading a few tutorials in the web in the end i dowloaded and tried a code i found, it works but this thing only sends one string and …

Member Avatar for vitroblue
0
144
Member Avatar for bibiki

hey there. I have been struggling with separating classes in java and figuring out what methods go in what classes. when i build my apps in one file, i do them right, but when i try to separate classes, i mess up. like for example: I have these two classes: …

Member Avatar for quuba
0
194
Member Avatar for progr

I am trying to make a program that determines whether a statement is true or false I have this so far:[CODE]public static void main(String[] args) { int w=2,x=3,y=4,z=5; boolean expression; expression = (w<=x)&&(z>=y); if(expression == true); System.out.println("true"); if(expression == false); System.out.println("false"); }[/CODE] ...but all it prints out is true and …

Member Avatar for progr
0
119
Member Avatar for dumb

HEy guys Have any one of u worked for an insurance company on java. I need to describe what u do in java for an insurance company. I need the description of the projects done for an insurance company in java. please make this quick,. This is emergency. Bye. thankx …

Member Avatar for peter_budo
0
133
Member Avatar for Protoroll

Okay so my loop is supposed to check if an item in the ArrayList has the MINIMUM_RATING value which is 1. It does that just fine, but the problem starts when there is more than one item with the MINIMUM_RATING value in it. I need it to stop at the …

Member Avatar for Protoroll
0
124
Member Avatar for AcidG3rm5

Hi all, I have created a UDP program, client and server. What i'm trying to do is, hash a string, save the hasded code and the message into a .txt file and send it over to the server. I have created the UDP program, MD5 hash codes and writing the …

Member Avatar for moutanna
0
3K
Member Avatar for DGXI

ive created an array list but every time i try and print the conents, instead of giving me a list it gives me the class name followed by @e41bc3 random numbers and letter. any ideas on how to print the contents? cheers

Member Avatar for moutanna
0
87
Member Avatar for progr

i need a for loop to print out the numbers 1 2 4 8 16 32 64 128 256 512 any help?

Member Avatar for moutanna
0
100
Member Avatar for charlottetemp

I have built a class with an array of cinemas. Im trying to return the values in the array or print them out so i can see what they are called. I've tried returning, system printing and a for each loop but it doesn't seem to be working. What is …

Member Avatar for javaAddict
0
64
Member Avatar for ceyesuma

Could someone look at my Statement stmt? is this error due to improper string creation? Thanks [code] [/code] [code] public String stmtCreateStudentTable = "CREATE TABLE student (" + "stu_uid CHAR(11)," + "stu_password CHAR(11)," + "stu_lname CHAR(20)," + "stu_mname CHAR(20)," + "stu_fname CHAR(20)," + "stu_gender CHAR(1)," + "stu_age INT(3)," + "stu_start_date …

Member Avatar for ceyesuma
0
119
Member Avatar for FriQenstein

Hello all. I've a question regarding using fractions as exponents. Not quite sure how to start this in Java. For example, let's say someone gives you an equation from an excel sheet as follows: [B](AxB)^1/3[/B] I'm assuming this means multiplying A*B then raising it to the power of 1/3 ([I]one …

Member Avatar for FriQenstein
0
348
Member Avatar for BobbieJean

Hi all, I had posted my code and updated it a few times in another thread and didn't get any response and since I have gotten some things figured out and had posted my long code a few times in the other thread, I thought I would put my last …

Member Avatar for BobbieJean
0
1K
Member Avatar for pore

Hello, I'm working at a 8 puzzle ([url]http://www.permadi.com/java/puzzle8/[/url]) i want to compare two arrays. after that I want to get a true or a false and then I want to implement a algorithm. my question is: why can I not use 2 different variables and display the interger values of …

Member Avatar for pore
0
113
Member Avatar for kalyan9029

can anyone write the code for the following algorithm. my mail is <EMAIL SNIPPED> Object list = [1,2,3...n], where n- number of tuples/records m- number of attributes Phase I The steps involved in this phase are detailed below: Step 1: Construct a dissimilarity matrix ‘d’ using the measurement in definition2. …

Member Avatar for javaAddict
-1
96
Member Avatar for pankajagar2002

Hello frnds. i have little bit confusion on this topic, i try to find over the internet but not able to do this, could you please help me, i want to know that whether Calender.getInstance() method is threadsafe or not. Thanks in advance

Member Avatar for ~s.o.s~
0
1K
Member Avatar for ana_eht

can someone pls tell me what is the damn error here?!! [CODE] package t6q6; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner (System.in); System.out.println("Please enter your account number."); int account = input.nextInt(); System.out.println("Please enter P or R for Premium or Regular …

Member Avatar for ana_eht
0
127
Member Avatar for thedrones12

Hi all, I am doing some swing game programming and I am at a bit of a loss right now as the AWT Event 0 thread ( I have system.out.printed its name) seems to be calling the same code twice, any ideas on this? I am overriding the paintComponent() of …

Member Avatar for thedrones12
0
245
Member Avatar for sunillakhiyani
Member Avatar for rciprogrammer

Hi Looking for a way to pass back multiple data types from a method. I want to be able to pass back an array that the method fill out, and also the length of that array (I need that because the calling code will pass the byte array to the …

Member Avatar for rciprogrammer
0
124
Member Avatar for jaku78

Hi. At the moment I'm trying to get this very simple calculator to just set the label of the text in the GUI to just be the label value at the moment. I plan to make it do the math but I'm having trouble getting to that point. When I …

Member Avatar for jaku78
0
134
Member Avatar for satishynd

I have a question. I need to write a program to display a button with an image on it using Swing. the Image on the button has to change when the button is clicked. I read somewhere about the image on button But is not sure how to change the …

Member Avatar for Ezzaral
0
107
Member Avatar for cherryduck

Hey, this is a continuation of my image editing program, I am trying to perform intensity thresholding with an intelligent threshold. My code thus far: [CODE] private void thresholdMenuItemActionPerformed(java.awt.event.ActionEvent evt) { BufferedImage inputImage = getImage(); setUndoImage(inputImage); BufferedImage thresholdImage = new BufferedImage(inputImage.getWidth(), inputImage.getHeight(), inputImage.getType()); int threshold = 0; int tnew = …

Member Avatar for cherryduck
0
182
Member Avatar for camac

Hi people, I am new to Java but have experience programming in C/C++/C#. I wanted to learn Java SE 6 first before moving to Java EE 6. After making some research online for appropriate Java SE 6 books, I found that these are appropriate for me to get an excellent …

Member Avatar for tux4life
0
136
Member Avatar for joker.med

Hello everyone, After I created a JTable with: JTable MaTable =new JTable(); MaTable.setModel(new DefaultTableModel(new Object [N][1], new String [1])); I wanted to add new columns to it, so I did this: TableColumn Colonne = new TableColumn(); MaTable.addColumn(Colonne); The operation did worked, even the new columns displayed correctly, but, when I …

Member Avatar for joker.med
0
84

The End.