Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~28.2K People Reached
Favorite Tags

48 Posted Topics

Member Avatar for coroll

Hi, I want to find all the words(scabble words) that can be made out of given set of letters. ex: abnana results: a aa ab an baa ban banana na nab How could i achieve this? Do i need a binary tree? Plz some one help me...

Member Avatar for JamesCherrill
0
2K
Member Avatar for coroll

Hi all, I get 'Invalid string or buffer length' exception when trying to do this. String s=resultSet.GetString(1) Exception: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid string or buffer length at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6956) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7113) at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3906) at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5697) at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:353) at sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(JdbcOdbcConnection.java:1503) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:381) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:579) at java.sql.DriverManager.getConnection(DriverManager.java:243) at Controll.Test.sselect(Test.java:72) at …

Member Avatar for jwenting
0
600
Member Avatar for coroll

Hi all, I'm developing a simple RMI chat server. Im getting following exception when i execute Client. Server works well. java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at sun.rmi.transport.Transport$1.run(Transport.java:174) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) …

Member Avatar for JamesCherrill
0
289
Member Avatar for coroll

Hi, Im developing a game. When the human gets his turn i want to display a JFrame with some buttons. So the game must wait until the user clicks on a button. Also i want to identify which button is clicked. I read that JOptionPna gets any component as a …

Member Avatar for Taios
0
288
Member Avatar for coroll

Hi, I want to get the object of the currently open JFrame? I found this Frame[] frames = Frame.getFrames(); Does this provide the open frames? If so how to get the frame that i need. Plz Help..

Member Avatar for stultuske
0
120
Member Avatar for coroll

Hi all, I have givn a task to implement a game. It has ruls of texa's Holdem poker and the objective is to make words like scabble.So it is a blend of these 2 games. So i need to store (Only with 5 letters)words(I dont know whether it is a …

Member Avatar for JamesCherrill
0
192
Member Avatar for coroll

Hi, I want to implement an English word dictionary without the meanings. I have 51,947 words. I read many articles on the internet and sugestions were trie, Hashset Will implementing a trie provide better perfomance for serching or Hashset or anyother. Plz help me..

Member Avatar for coroll
0
99
Member Avatar for coroll

Hi all, I dont why my code is not detecting the matching words. Firstly Im reading the words from a text file into an array. Plz help me to make this correct. This is my code. import java.util.*; import java.io.*; public class TestRegex{ public static void main(String[] arg) { String …

Member Avatar for coroll
0
373
Member Avatar for coroll

Hi, i get an NullPointerException in this line:if (let==currentLink.aLetter) in search method. This is node class public class Letter { char aLetter; int points; Letter next; public Letter(char aLetter,int points) { this.aLetter=aLetter; this.points=points; } public Letter() { } public String printLink() { // System.out.print("{" + aLetter + ", " + …

Member Avatar for JamesCherrill
0
123
Member Avatar for coroll

Hi all, Im new to android and eclipse. When i create a new android project it provides a string call "hello" and the value is "Hello world, Test1Activity" as my project name is Test1. So when i run it the string is shown.No prob there. But if i modify the …

Member Avatar for coroll
0
81
Member Avatar for coroll

Hi ! I am writing simple email client that uses TCP/IP sockets to interact with an SMTP server to send email messages. this is my code import java.io.*; import java.net.*; import java.util.*; import java.text.*; public class TestSendMail { public static void main(String args[]) throws IOException { Socket socket; DataInputStream dataInput; …

Member Avatar for NormR1
0
126
Member Avatar for coroll

Hi all, I have given a assignment to implement patterm matching algorithms and to do a experimental analysis on number of comparisons, real time taken and CPU time taken for each algorithm. I have done all except CPU time calculation. Plz can anyone guide me how to do this...

Member Avatar for coroll
0
5K
Member Avatar for coroll

Hi all, Im new to java. I get this error. Non-static variable this cannot be referenced from a static context myClass c=new myClass() ^ this is my code [CODE] public class MyOwnBm{ private Hashtable myHash=new Hashtable(); public static void main(String[] args) { myClass c=new myClass(); c.match(); } public class myClass{....} …

Member Avatar for JamesCherrill
0
490
Member Avatar for coroll

Hi all, Im trying to remove from a HashTable by providing key and to get by proving key. And i tried as follows for removing, Caharcter ch=p.charAt(i); but gives these errors. myOwnBm.java:60: cannot find symbol symbol : method Remove(char) location: class java.util.Hashtable myHash.Remove(p.charAt(i)); ^ myOwnBm.java:77: inconvertible types found : java.lang.Object …

Member Avatar for JamesCherrill
0
156
Member Avatar for coroll

Hi all, I've declared a static int variable call Click=0; in the Pay.Designer.cs. then i just want to get the value of it in a button click of another form. But it says : [B]The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += or -=[/B] It …

Member Avatar for avertyn
0
2K
Member Avatar for coroll

Hi all, I want to show Form2 when button1 of Form1 is clicked. how would i do it. this is what i was trying to do.But it is not working But it gives me an error ; The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += …

Member Avatar for ddanbe
0
151
Member Avatar for coroll

Hi all, I have a windows apllication project. Last night i saved it. Today i opened it and started to work with it by adding new methods and etc. then i compiled and ran. But it does the previous things not the new ones. Always last night version runs. PLZZZ..help …

Member Avatar for coroll
0
81
Member Avatar for coroll

Hi all, im trying to separate words in a string using whitespace " ". but it gives ArgumentOutOfRangeExeception : Index and length must refer to a location within the string. Parameter name: length it points to this line : if (textBox3.Text.Substring(i,c)==" ") [CODE] if (textBox3.Text != null) { ArrayList arrayKeyword …

Member Avatar for gusano79
0
139
Member Avatar for coroll

Hi all, In my table i have duplicate rows. i want to get distinct rows. select distinct * from table1 does not work. select distinct col1,col2,col3,col4 from table1 does not work. both say: The text data type cannot be selected as DISTINCT because it is not comparable. select distinct(col1) col2,col3,col4 …

Member Avatar for coroll
0
182
Member Avatar for coroll

Hi all, I want to know how to assin a return value to a variable when calling a regex function. it always returns a bit type of value(its ok). i want that bit type of value tobe cheked whether it is '0' or '1' this is my C# code in …

Member Avatar for coroll
0
181
Member Avatar for coroll

Hi all, Im adding a column after the dataGridView is populated. Then I want to add LinkLables to that column. how to do this. PLZ help me. I've tried this.But it gives me an error. this is my buton click.its ok. [CODE] private void button1_Click(object sender, EventArgs e) { Search …

Member Avatar for codes4f0x0d
0
2K
Member Avatar for coroll

Hi all, i want to add data manully to a dataGridView.but i get this exception. ArgumentOutOfRangeException. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index PLZ help me to solve this. this is my code. [CODE] int clicks=0; private void …

Member Avatar for Mitja Bonca
0
577
Member Avatar for coroll

Hi all, I want to call a button1 click method inside a close button(which is provided by a form) click of a form. But there is no close button click event of a form. There is only From_closing event and Form_closed events.

Member Avatar for Momerath
0
252
Member Avatar for coroll

Hi all, i made some modifications to my code which i wrote previoustly. But when i run it, the previous code is executing. i showed a msgbox inside button click.Next day i erased & it wrote a different code. when i click it still the msgbox is being appeared. PLZ …

Member Avatar for nmaillet
0
117
Member Avatar for coroll

Hi all, I am generating comboboxes in runtime in a for loop. Then, when click ok i want to get the selectedItems. So how would i do this. PLZ help me. this is how i generate comboboxes in th page load. [CODE] NewBookEntry nbe = (NewBookEntry)Application.OpenForms["NewBookEntry"]; int lable = 0; …

Member Avatar for coroll
0
144
Member Avatar for coroll

Hi!, I get InvalidCastException. It says "Unable to cast object of type 'HD.MainMenu' to type 'HD.NewBookEntry'" and points to this statment "mpg=(NewBookEntry)fm" Plz help me to solve this. My code is: [CODE] FormCollection fms=Application.OpenForms; foreach(Form fm in fms) { mpg=(NewBookEntry)fm; } mpg.Dispose(); [/CODE]

Member Avatar for coroll
0
113
Member Avatar for coroll

Hi all, I want to understand the purpose of .resx file. i konw that Designer.cs is the class for the form. i read that .resx stores resources. 1. But what kind of resorces? 2. where is it used in the form? 3 when i opend it shows only "String1". Why? …

Member Avatar for darkagn
0
134
Member Avatar for coroll

Hi all, when i execute it gives me this exception. I am trying but i coudnt slove. Plz help me. InvalidOperationException ExecuteNonQuery requires an open and available Connection. The connection's current state is closed. it points to this line -> "int executed = com.ExecuteNonQuery();" this is my code: [CODE] try …

Member Avatar for coroll
0
162
Member Avatar for coroll

Hi! my code gives me this error. "An object reference is required for the non-static field, method, or property 'HD.RegisterMember.CN'" Plz can anyone help me. This is my code(Class); [CODE] private SqlConnection CN; public static String getLastMemID() { String ID = null; try { CN = new SqlConnection("Data Source=BJ-PC\\SQLEXPRESS;Initial Catalog=DB;Integrated …

Member Avatar for kapojian
0
157
Member Avatar for coroll

Hi! im getting this error. I dont know why. PLZ can anyone help me. this is my code [CODE] public void getLastMemID() { String concString = "Data Source=BJ-PC\\SQLEXPRESS;Initial Catalog=new;Integrated Security=SSPI"; // int ID=0; try { CN = new SqlConnection(concString); CN.Open(); SqlCommand com = new SqlCommand("SELECT MAX(ImageId) FROM ImagesStore", CN); SqlDataReader …

Member Avatar for Mitja Bonca
0
105
Member Avatar for coroll

Hi!, I have a formProd and a dataGridView in it. I want to access the dataGridview of formProd from formMain. [CODE] foreach (Form form in Application.OpenForms) { formProd prd = (formProd)form; if (prd is formProd) prd.itemsGridView.DataSource = DS.Tables["product_Header"]; }[/CODE] this gives me InvalidCastException. can any one tell me how to …

Member Avatar for coroll
0
149
Member Avatar for coroll

Hi, im new to c#.When i execute the following code i get "vshost.exe has stopped working" message. Firstly i insert some data to a table in sql server 2008.then i want to retrieve the MAX(Mem_ID). My insertion is working properly. But when im trying to retrive MAX(Mem_ID). It gives above …

Member Avatar for coroll
0
2K
Member Avatar for coroll

Hi, Can enyone helpsme.Im new to C#. i gt this error. Embedded statement cannot be a declaration or labeled statement My code is [CODE] foreach (Form form in Application.OpenForms){ if (form is productResults) productResults pr =(productResults)form; } [/CODE] PLZ...help me.

Member Avatar for kvprajapati
0
973
Member Avatar for coroll

Hi, I want to send no emails with attachments.But i dont know anything about sending emails.Im using windows 7 visual studio 2008. I was looking for help on internet. According to them I installed IIS.I think it is IIS 7. How to check the version of IIS? Also smtp is …

Member Avatar for coroll
0
307
Member Avatar for coroll

Hi! can any one tell me the file extension of items which are in sites like WeeWorld.com. I want to create dummy and wear it dresses.When i click on a certain dress it must appear in that dummy. And also any idea of doing this. thanks

Member Avatar for Dukane
0
72
Member Avatar for coroll

Hi, im getting an error 'Invalid term expression else'. [CODE] private void button1_Click(object sender, EventArgs e) { ClassLogin clgn = new ClassLogin(); bool sts =clgn.Check(textBox2.Text, textBox1.Text); if (sts == true) { MessageBox.Show("OK"); else MessageBox.Show("Your Username or password is incorrect"); } } [/CODE] WHY?

Member Avatar for Munnazz
0
106
Member Avatar for coroll

Hi, I want to put color piker in a form. Does visual studio 2008 provide such a tool or does any one know how to put a color piker. Please help me. Thanks

Member Avatar for coroll
0
115
Member Avatar for Ndoom

[QUOTE=raghujosh;1264642]Hi, I was looking more towards learning and thus interacting regarding JAVA. Currently, I am working towards it. While I can follow the group on PHP and MySQL, my current interests are in JAVA. Any body interested in JAVA? Thanks Raghu[/QUOTE] im interested in java. i just became a member …

Member Avatar for popin
0
453
Member Avatar for coroll

Hi, i get the following error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. this is my code [CODE] import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String itemn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order where …

Member Avatar for javaAddict
0
316
Member Avatar for coroll

Hi, i want to call another jsp from a jsp.lets say one.jsp and two.jsp. So one.jsp has a form. two .jsp need to get that values from one.jsp. Can 'request.getparameter()' be used in two.jsp to get the parameters sent by the one.jsp.please can any one help me? this is my …

Member Avatar for javaAddict
0
6K
Member Avatar for coroll

HI this is my code.it uses access database.But givs me this error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause. import java.sql.*; public class DetOrderNum{ public static void main(String[] args){ Connection con=null; ResultSet rs=null; Statement stmt=null; int pkey=0; String mn="jin"; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:MY-PIZZA","",""); String q="select order_num from Order …

0
81
Member Avatar for coroll

Hi!, i have 48 errors with following code.Plzzzzzzz.......can anyone tell me the mistake that i had done. thanks in advance. this is my code [CODE] import java.lang.String; import java.lang.Integer; import java.lang.Float; import java.util.Hashtable; import java.util.Enumeration; import java.sql.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class testM{ public static void main(String[] …

Member Avatar for coroll
0
339
Member Avatar for coroll

HI!, i want call a jsp using anchor tag's href also with some data in it.when sending data i want wrap them in [CODE]<%=name%>[/CODE]. is it possible. i dont know how to do. but wahat i want to ask is [CODE]<a href='remove.jsp?itemNme=<%=temp[i]%>';>[/CODE] PLZ help me to do this.im stuk here. …

0
62
Member Avatar for coroll

Hi everyone!, do we need to add any tags to web.xml when using a bean. can any one tell me PLzzzzzzzzzzzzzzzz............ THANKS IN ADVANCE

0
72
Member Avatar for shahreza

H!, wish you all the best with your project. im also an it student.

Member Avatar for shahreza
0
132
Member Avatar for coroll

Hi!, im developing a shopping cart.my hash table is in a bean.so i need to use the hash table's elements.is it possible to use the same bean(id) in a another JSP.

Member Avatar for ~s.o.s~
0
77
Member Avatar for coroll

Hi!, when im trying to execute following code.i get this error.can any one help me to make it correct. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source) at SelectApp.main(SelectApp.java:18) this is my …

Member Avatar for java_programmer
0
199
Member Avatar for coroll

Hi, i want to retrive data from a table which has a composite primary key. This is the query im using; "select price from Item_size where primarykey='"+pk+"'" But it does not work. Im using MS Access. can anyone help me!

Member Avatar for Ancient Dragon
0
104

The End.