35,618 Topics

Member Avatar for
Member Avatar for yup790

In the main class the user enters text trying to find the file in the same directory as the source file. The string gets passed into the constructer and a file object is made but the file isn't found. The print statements are just to find out what is happening. …

Member Avatar for yup790
0
388
Member Avatar for 03hasnam

From Class Model: public TableModel getTableData() { TableModel model=null; try { String sql = "SELECT eventID as 'Event ID', date as 'Date',eventName as 'Name', time as 'Start Time' FROM Event"; pst = conn.prepareStatement(sql); rs = pst.executeQuery(); model = (DbUtils.resultSetToTableModel(rs)); } catch(SQLException e){ e.printStackTrace(); } finally { try {rs.close(); pst.close(); } …

Member Avatar for Taywin
0
236
Member Avatar for jasonlolwut

I need a source code for JAVA for balancing a chemical equation. CH4 + O2 = CO2 + 2 H20 CH4 + 2 O2 = CO2 + 2 H20

Member Avatar for Taywin
0
2K
Member Avatar for SoulofchaOs

I am coding an image puzzle game and one part of the code is to compare the pieces the user has selected to the pieces of the correct image to check if it is correct. Each image piece is already added to a JButton as an ImageIcon. An identifier is …

Member Avatar for mKorbel
0
250
Member Avatar for mrabrar09

Hello everyone am facing an error exception SQLServerException: The TDS protocol stream is not valid Jan 19, 2013 4:21:02 PM com.microsoft.sqlserver.jdbc.TDSReader throwInvalidTDS SEVERE: ConnectionID:18 got unexpected value in TDS response at offset:1508 Jan 19, 2013 4:21:02 PM com.microsoft.sqlserver.jdbc.TDSReader throwInvalidTDS SEVERE: ConnectionID:18 got unexpected value in TDS response at offset:1451 com.microsoft.sqlserver.jdbc.SQLServerException: …

Member Avatar for pritaeas
0
1K
Member Avatar for somaye.s

hi i need to get pixel value of an color image but i don`t know how. i need code for do this.

Member Avatar for radhakrishna.p
0
111
Member Avatar for anglwthnati2de

So.... I am just wondering which would be the better one to learn for todays market - ASP.net or JSP. I have to take one or the other and am not sure which one is the better choice. If it were up to me I would say neither and go …

Member Avatar for anglwthnati2de
0
148
Member Avatar for christiangirl

Hello, I am getting Identifier expected and Illegal start of Expression erros in this code: [code] //"Math is our Game" - A math testing program for First through Fourth grade students //Import GUI packages import javax.swing.*; import BreezySwing.*; import java.awt.*; import java.util.Random; //import TurtleGraphics.*; public class Math extends GBFrame { …

Member Avatar for stultuske
0
814
Member Avatar for LegendX

import java.util.Scanner; public class Lab7 { /** * @param args */ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int counter = 0; String[] letters = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; final int ROW; final int COL; System.out.println("Please enter the total number of rows: "); ROW = scan.nextInt(); System.out.println("Please enter the …

Member Avatar for stultuske
0
108
Member Avatar for grafic.web

Hi there i woul like to pass my variable "testiframe" from javascript to asp, hw can i do??? Thi is the code : <script type="text/javascript"> if (location.href != top.location.href) { testiframe="ok" } else { testiframe="ko" } </script>

Member Avatar for Seacanoeist
0
113
Member Avatar for DJ-DOO

Hi, I'm hoping someone out there can help me, I am trying to create a basic application that transmits GPS co ordinates of the device to a server. I am a complete noobie to socket programming (well, I covered the bare basics in college this year). As a stepping stone, …

Member Avatar for peter_budo
0
2K
Member Avatar for rose_anne

Hello, Me very new to java prgmng and got to redesign a C proj in java. Might be very insane question but not for me. My c poject has a file, called headerfile.h and the structure looks like this #define ID_File1 0x6F01 #define ID_File2 0x6F02 ... .. likewise all constants …

Member Avatar for rose_anne
0
232
Member Avatar for zlloyd1

I have a program that creates a GUI with three text fields in it, and two of these fields is supposed to accept a numeric value. I want to know how to get the numeric entries and store them in a variable for further calculations please. I know how to …

Member Avatar for bguild
0
191
Member Avatar for wooof21

requirement: Design, Implement and test the Invoice class An Invoice class groups InvoiceItems into a single object. Each Invoice has a unique serial number:the first Invoice has serial number 1, the second has serial number 2, etc. (Hint: implementing this will require a static variable.) A newly created invoice will …

Member Avatar for stultuske
0
193
Member Avatar for jhonilson

Hi Everyone. I make an aplication with netbeans, struts and tomcat as server. When i run it locally this work perfect. But when i deploy the application in other machine it not work correctly.! The application show a list the people, if you want to change the name you can …

Member Avatar for jhonilson
0
787
Member Avatar for kamil555

I have a project. the project is: In the game of craps, a pass line bet proceeds as follows. Two six-sided dice are rolled; the first roll of the dice in a craps round is called the "come out roll." A come out roll of 7 or 11 automatically wins, …

Member Avatar for JamesCherrill
0
533
Member Avatar for jalpesh_007

I am going to start learning about Spring framework. Please tell me from where i can get good tutorial for learning same with example. please send me(Suggest me) links or material regading Spring, so i can learn it in better way. Thanks a lot.

Member Avatar for jalpesh_007
1
169
Member Avatar for gudads

Please note I AM not a programmer, i run my own company. trying to built calculator by myself. I have software background but someone helped me write this code. Its working but not showing the calculations. If someone can reply me with solution or new code that will be great. …

Member Avatar for code739
0
117
Member Avatar for dannyboy.rizaldo

int d=num%10; rev= (rev*10)+d; num=num/10; //Why is it reverse? please explain.

Member Avatar for JamesCherrill
0
27
Member Avatar for 03hasnam

Here is a section of code from a MODEL class of the MVC Framework: public TableModel getTableData() throws SQLException { try { String sql = "SELECT date as 'Date',eventName as 'Name', time as 'Start Time' FROM Event"; pst = conn.prepareStatement(sql); rs = pst.executeQuery(); TableModel model = (DbUtils.resultSetToTableModel(rs)); return model; } …

Member Avatar for JamesCherrill
0
290
Member Avatar for farah90

Heloo, could you please help me? its really urgent as this is my project. In this code, i want to total up number of people who are pending in this category. Then link it to another page. When going to the link page, it will retrieve the name of the …

Member Avatar for JamesCherrill
-1
120
Member Avatar for Jimbo_Dew

Is this possible? I've tried Runtime.getRuntime().exec("javaw.exe <COMMAND_ARGS> \"" + wu.getCurrentUserDesktopPath() + "/file.txt \""); This is a personal learning experience for me. As I am a self-taught.

Member Avatar for JamesCherrill
0
247
Member Avatar for jasonmark238

Hi friends, What is RAR file in j2ee. Please give me directions to creatre RAR files. Please help me. Thnaks & Regards Jasonmark

Member Avatar for rubberman
-1
127
Member Avatar for sbharathind

Hi, I am not able to understand DSW ALgirthm Its process of creating backbone or vine and creating balanced Tree. By rotation of Vine(BackBone) what is being said I couldnt Understand. Read few articles but Couldnt Understand Much. Can some one explain me about DSW Algorithm. And Also I tried …

Member Avatar for rubberman
0
243
Member Avatar for Violet_82

Hi all, finally following the advice on this forum I got hold of the Deitel and Deitel java how to program 9th edition! Great book I must say so far (only got to chapter 3). Now, I am doing some of the exercises as I go along, and today I …

Member Avatar for Violet_82
0
315
Member Avatar for dmanw100

Hello, This doesn't seem to fit any particular forum, but I thought it might fit best here. I need to be able to add Java syntax highlighting functionality to a form on an internal website. Does anyone know of a syntax highlighting framework that supports Java and can be embedded …

Member Avatar for dmanw100
0
179
Member Avatar for $ay_$andy

hello, i m trying to call java function from javascript. i want to pass js variable as a parameter to java function. pls anyone help me how can i do that..?? thank you..

Member Avatar for ruchi18
0
292
Member Avatar for manaila

Is it necessary to learn Servlet programming when one is already comfortable with JSP

Member Avatar for ruchi18
0
155
Member Avatar for Yidnekachew.

Hi, I am new to this forum having a limited experience in programming(only simple C++ and basics of Java) May some willing person help me the steps to make real applications(mobile or computer) using this programming language? `

Member Avatar for JamesCherrill
0
253
Member Avatar for boiishuvo

This code works fine but it would be too long if the score is 50 or over. Is there any way to make it shorter and quicker? I tried to use for loop statement but it didn't work well. background(backgroundChange); if (score >= 5 && score < 10) backgroundChange-=0.8; else …

Member Avatar for JamesCherrill
0
189

The End.