32,199 Topics

Member Avatar for
Member Avatar for swatiringe

I want to construct a bipartite Graph for matchmaking of web services. First step of my project is graph construction. I need help in Bipartite graph construction

Member Avatar for Freddy00daniweb
0
166
Member Avatar for mzdiva041986

This program actually reads in an input expression and using the grammar rule to determine whether the syntax is ok or not. This is a lexical analyzer. I need to be able to read in the input expression and output each token of the expression and it's token kind. I'm …

Member Avatar for BestJewSinceJC
0
72
Member Avatar for jsully1

I am new to using swing and I am trying to find a good way to organize a window with multiple tabs. I have found the info on Sun's website but I still need to manipulate the positions and alignments of those tabs more than what it covers. I also …

Member Avatar for BestJewSinceJC
0
68
Member Avatar for mveleli
Member Avatar for darkagn
0
37
Member Avatar for hell_tej

Hi Friends, My BCA(Bachelor of Computer Application) 6th sem Precticle exam is After 3 Days, so i want some good prectice of programs but i have no good Questions for prectice. Can you give me Some Servlet,JSP,RMI,and J2ME questions so i can practice that programs.:)

0
64
Member Avatar for Grn Xtrm

Hello, I'm facing another problem with vectors, this time with the problem of converting infix to postfix. The compile process completes, but I recieve an error after I enter the infix expression. Here is the exact error I recieve: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 43 >= 2 at java.util.Vector.removeElementAt(Vector.java:511) at …

Member Avatar for Grn Xtrm
0
140
Member Avatar for cherryduck

Hi everyone, I'm making a program to store library books details, my constructor is such: [CODE]public Book(String author, String title, String publisher, int year)[/CODE] and I'm using an array to store and number the books and details, as such: [CODE]for(int i = 0; i <= 100; i++) { String book[i] …

Member Avatar for cherryduck
0
129
Member Avatar for Rombosia

Hi guys, I'm connecting to a bluetooth printer using a Phone via the following address: btspp://" + PrinterBluetoothAddress + ":1;authenticate=true;encrypt=false;master=true"; With this address, I'm able to print using a Sony Ericsson. With a Nokia, however, the master=true option is not supported. If I use master=false, I can just connect to …

Member Avatar for peter_budo
0
76
Member Avatar for frozon

hi am new to java and have a problem in displaying the x and y points on the graph to solve this ax3+bx2=x+d=0 here is the code import java.awt.*; import javax.swing.*; import java.awt.event.*; /** * PROGRAM: Cubic * DESCRIPTION: This program solves the cubic Equation for a given range of …

Member Avatar for frozon
0
116
Member Avatar for pyscho

can someone plz help prog that allows the user to accept 2 end points (using mouse) and draws a rectangle between 2 points (using AWT Frame class and mouse listeners) 2.accepting two strings as comand line argumnts and append both. 3.a prog for accepting string from user. i am a …

Member Avatar for pyscho
0
87
Member Avatar for curtissumpter

Hello, I have this piece of code. [code=java] private Vector getColumn(ResultSet rs) throws SQLException { Vector row = null; ResultSetMetaData rsmd = null; boolean moreResults = rs.next(); if (moreResults) { row = new Vector(); rsmd = rs.getMetaData(); do { switch(rsmd.getColumnType(1)) { case Types.VARCHAR: row.addElement(rs.getString(1)); System.out.println(rs.getString(1)); break; case Types.INTEGER: row.addElement(new Integer(rs.getInt(1))); …

Member Avatar for masijade
0
127
Member Avatar for madeindadex305

First class mail has no insurance, and costs $1 plus 17 cents for each ounce up to a maximum of 13 ounces. The first trick here is that your weight is stored in pounds and the description of the cost formula is in ounces. You do remember how to convert …

Member Avatar for darkagn
0
124
Member Avatar for helixkod

I am trying to create random rectangles and ovals. This is what i ahve so far: [CODE]import java.awt.Color; import java.awt.Graphics; public class MyRectangle { private int x1; private int y1; private int x2; private int y2; private Color myColor; //constructor with input values public MyRectangle( int x1, int y1, int …

Member Avatar for helixkod
0
126
Member Avatar for curtissumpter

Hello, I have this piece of code. Help with Code Tags java Syntax (Toggle Plain Text) [code=java] private Vector getColumn(ResultSet rs) throws SQLException { Vector row = null; ResultSetMetaData rsmd = null; boolean moreResults = rs.next(); if (moreResults) { row = new Vector(); rsmd = rs.getMetaData(); do { switch(rsmd.getColumnType(1)) { …

0
61
Member Avatar for JamesCherrill

Here's a question for those of you who have experience of fixing or enhancing other people's Java code, which I hope will also be really useful for those in the early stages of learning programming. Please contribute! If you've looked at other people's code, you will know that sinking feeling …

Member Avatar for JamesCherrill
0
99
Member Avatar for KirkPatrick

Before going into the explanation I will list what I am wanting to do in order: [B][LIST] [*]Have main() read [U]results.csv[/U] and create beans according to the lines of data in the file [*]Have my beans set up correctly (getters, setters, and propertychanges) [/LIST][/B] To give you guys a quick …

0
78
Member Avatar for Zass101

I will pay the first person to finish this task via paypal!!! I will pay $5! Good luck! [B]Brief:[/B] Create a program that will read data related to the test results of a particular group of learners from a text file. The data must include fields of the following types: …

Member Avatar for peter_budo
-3
221
Member Avatar for Lekeby

Hi! I have a school project where I have to make a array that includes facts about films. Every space in the array includes leanght of the film, authour, grade, company, and title. So I know how to write it to a file but I have no idea how to …

Member Avatar for JamesCherrill
0
111
Member Avatar for Thayland

Hi all! I've been working on a problem from my Intro to Java class for a couple of weeks and I feel like I'm close. I turned it in and only got partial credit. Here goes: This program allows a user to enter a phone number, country code, area code, …

Member Avatar for Thayland
0
2K
Member Avatar for BestJewSinceJC

Question directed at JamesCherill specifically, (and anyone else who can answer it) I've never had [I]too[/I] much trouble with communicating between the model and the view, in an application that only has a model and a view. However, looking at the observer pattern (at the bottom) of this [URL="http://leepoint.net/notes-java/GUI/structure/ui-model-communication.html"]link[/URL], I …

Member Avatar for Ezzaral
0
1K
Member Avatar for pjpro

I have tried to make a chat application that only saves the recieved messages which can then be deleted. I'm having some major problems with it. Can anyone please point out or correct my coding. I have tried for ages to get this working but with no joy. Client Code …

Member Avatar for Antenka
0
1K
Member Avatar for Mubo

hi guys I hava an assignment, which is writting a java code that most efficiently add 50.000 element to a threaded binary tree. the Key nodes are integers between [-5.000.000 to 5.000.000]. No delete operations are needed, but only adding that elements to binary tree i hope you can give …

Member Avatar for BestJewSinceJC
0
36
Member Avatar for smsamrc

if i want to print 2 to the power 3 normally what we do is 2^3. is there any other way that i can print it in the console in the way that we normally write it on a paper. does anyone know it pls tell me.

Member Avatar for smsamrc
0
749
Member Avatar for stevnlon

HI, aLL [code]final int[] fromStop = {1, 2, 3, 3, 4, 5}; final int[] toStop = {3, 4, 5, 1, 2, 3};[/code] im trying to write a loop to create and start passenger threads with the respective from and to stops in the arrays above. e.g. Passenger 1 goes from …

Member Avatar for stevnlon
0
2K
Member Avatar for ed7171

I would like to find out how to fix drop down menu over flash when the flash content brought by the java/script below into iframe? You may see what I am talking about here : [url]http://67.220.225.130/~ktaelot/#[/url] Here is the script: [CODE=javascript]<script type="text/javascript"> var fo = new SWFObject("ext/viewer.swf", "viewer", "100%", "100%", …

Member Avatar for ed7171
0
107
Member Avatar for PhiberOptik

Hi Folks, I am having difficult with a program. I have a program that downloads a file to the directory it is being run from and I need to move it to another one after its done downloading. I found code that should do it but it keeps failing, and …

Member Avatar for naugiedoggie
0
128
Member Avatar for jollyton12

Hey guys, I am doing my game project but i get this error everytime i press high scores button...can any one explain what this error means? Thanks in advance :) j Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1 at HighScoreManager.readHighScores(HighScoreManager.java:22) at StatusView$1.actionPerformed(StatusView.java:71) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at …

Member Avatar for jollyton12
0
452
Member Avatar for Mubo

Hi guys , i am a to programming and have to do little code as an excercise, but got little confuse about constructors and objects while compiling my programm. forexample i created an object of a class called AsciiImage; in the Main class public class AsciiReader{ public static void main(String …

Member Avatar for Mubo
0
80
Member Avatar for skiing

Here is what I am trying to do I am trying to compare to values that are set up as generic values and return whether one is greater than the other and it is telling me that (E, E) cannot be applied and I don't know why. I would appreciate …

Member Avatar for Antenka
0
102
Member Avatar for Olsi009

Hi, I am trying to write a program in Java and I am having a problem with a small part of it. I am using a JLabel to display an image. The JLabel is added to a JPanel with fixed width and height. But the problem is that the image …

Member Avatar for nmaillet
0
71

The End.