32,199 Topics

Member Avatar for
Member Avatar for asaidi

Hi i have 2 tables customer (cabinet_num which is integer) and cabinet (cabinet_num Autoincrement and cabinet_title) in my java i can display cabinet title to let the user choose a cabinet..but i want to collect the cainet_number in my customer table customet.cabinet package cabinet; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; …

Member Avatar for mKorbel
0
300
Member Avatar for sel15

I have implemented an FFT algorithm (by looking it up online) and integrated it into ImageJ but when I run it the image produced by the FFT algorithm is different from the image produced by the ImageJ software. I can't seem to find the error, I was hoping someone can …

0
183
Member Avatar for tabish saroha

Dear All, I I want to develop an application using java language. In this application i want to get data by scanning an image from scaner and put this data into database. Please anyone can help me in this article.... Regards, Tabish Saroha

Member Avatar for JamesCherrill
0
1K
Member Avatar for Pyler

Eclipse throws an error whenever I start it up (see attachment). Any help is greatly appreciated.

Member Avatar for peter_budo
0
161
Member Avatar for CreeperFace22

Im new to Java and when tring to get some textures into my game I got this error stated ImageIO cannot b resolved. Here is my code: import java.applet.Applet; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; public class gameLoop extends Applet implements Runnable, …

Member Avatar for stultuske
0
292
Member Avatar for Slavi

Before I even attempt doing anything in this direction, is it possible to enter a string and get it represented in ascii? I am reading an article about XSS and SQL injections part of a course that I am taking now, and some of the tips are that people in …

Member Avatar for Slavi
0
178
Member Avatar for shivakr

hi... i am shiva i learned strut2 and i would like to develop a web application so anybody suggest me a design or some type of thought about the application.. i would like to test my struts skills on it.. so suggest me any idea for developing wep application..plz i …

Member Avatar for happygeek
0
192
Member Avatar for nicemedo1
Member Avatar for stultuske
-2
1K
Member Avatar for rowen_1

I need to print the output whereby when int x = 1, it will be show the first 4 elements in the arrayList. int x = 2, it will be show the first 6 elements in the arrayList. int x = 3, it will be show the first 8 elements …

Member Avatar for JamesCherrill
0
272
Member Avatar for toring

Hi,I hope someone will help me on this,does anyone here knows algorithm BST infix to postfix,can you help me please. I am not good in java and i am still getting know with this. Thank you in advance.

Member Avatar for jwenting
-1
435
Member Avatar for moaz.amin.37

the virtual Methods concept is very difficult concept. In c++ when we want to implement polymorphism then we use virtual function. But in the case of java i read that all methods in java are virtual by default except final methods that can not be overridden. I am confuse about …

Member Avatar for jwenting
0
299
Member Avatar for Radhijavadev

import java.io.*; import javax.servlet.*; import javax.servlet.httpservlet.*; public class FirstServlet extends HttpServlet{ public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException{ res.setContentType("text/html"); PrintWriter out=res.getWriter(); res.sendRedirect("/FirstServlet/index.html"); } }//end of get public void doPost(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException{ res.setContentType("text/html"); PrintWriter out=res.getWriter(); String name= req.getParameter("name"); if(name.equals("")){ res.sendRedirect("/FirstServlet/ContacUs.html"); }else{ requestDispatcher rd= req.getRequestDispatcher("/second"); rd.forward(req,res); } }//end of post …

Member Avatar for stultuske
0
287
Member Avatar for kimmgillie

Please help, this is my first java class. I need help with how to do this assignment: Grade Calcualtion Program: write a program to calculate and display the course letter for a cpt236 student. Name your program GradeCalculation. Prompt for and input the project average,the homework average,3 test scores, the …

Member Avatar for Hiroshe
0
196
Member Avatar for rowen_1

I need to compare the following characters c,d,h,s such that s will be the biggest followed by h , c and d the smallest. d < c < h < s I have no idea how should I implement it. please help.

Member Avatar for rowen_1
0
164
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
578
Member Avatar for Violet_82

Hi, I am trying to add an event handling feature to an old program I wrote. Here is the relevant code: public class CalculatorLayout extends JFrame{ private BorderLayout layout;//layout object. Do I need a flowlayout at all? private JPanel numberKeysPanel;//contains the number keys panel //private JPanel calculationAreaPanel;//contains the calculation panel …

Member Avatar for Violet_82
0
2K
Member Avatar for anita_2

-There is series like - 7,7,7,8,7,7,8,8,8,7,7,7,7,7,8,8,8,8,7 -Find out occurence of 7 Output- 4 -Find out occurence of 8 Output- 3 -Maximum Occurence of 7 in one time- 5 Maximum Occurence of 8 in one time- 4

Member Avatar for stultuske
-2
79
Member Avatar for narendera22

Hi, I got WSDL files and XSD files from our client. I have created a proxy with this wsdl and added in my projec. I got the result that i want but once webservie returned error i got only exception name in Exception object not detail or inner exception. In …

Member Avatar for narendera22
0
222
Member Avatar for SpottyBlue

I was doing the love tester program for my assignment. Then, I've encounted some problems after I run the program. Here is my code: public class SEAN_LAB3 { public static void main(String[] args) { int i; String [] bName = new String [5]; String [] gName = new String [5]; …

Member Avatar for JamesCherrill
0
297
Member Avatar for Mr.M

Hi Dw I've been cracking my head trying to figure out the best way I can use to inter-react or send direct action commands to the device. Starting by stating what I'm trying to do here. I'm trying to create a POS system I've looked at jpos library packages but …

Member Avatar for Mr.M
0
244
Member Avatar for stephen.teacher

hi all, this is some extra credit from class we sat around cleaning up code today this is what we came up with public boolean equals2(IntTree t2){ return equals2(this.overallRoot, t2.overallRoot); } private Boolean equals2(IntTreeNode r1, IntTreeNode r2){ if(r1 == null || r2 == null){ return r1 == null && r2 …

Member Avatar for stephen.teacher
0
299
Member Avatar for jhender4880

I have to write a program that uses the shortest path that starts at a "home" city and goes to 3 other cities and back "home" again. I have been reading for a few hours about a good way to solve this problem. It seems to be a variation of …

Member Avatar for jhender4880
0
250
Member Avatar for Toby_1

for(long i = 1;i< 600851475143; i++ ){ The rest of the code works however I am testing against this number and I get an error: Out of range of int. How can I create boolean tests against a larger variable. Thank you.

Member Avatar for JamesCherrill
0
104
Member Avatar for Slavi

@JC, I just wrote this code really quick and it does compile without errors for the server side ... but I am not sure about 1 thing .. here is the code first import java.net.*; import java.io.*; public class GameServer extends Thread{ private ServerSocket serverSocket; private enum Action { Scissors, …

Member Avatar for Slavi
0
418
Member Avatar for IchibanXD

Hey guys, i'm a bit of a new programmer taking a class.So in my code what im trying to do is to select three random numbers, and see if it matches with the numbers that the lottery throws out. The problem is where the 1st number and 3rd number selected …

Member Avatar for IchibanXD
0
1K
Member Avatar for stephen.teacher

hey all im a relative noob with progaming if i could get some help i would be greatfull this is homework but not the whole assignment thank you all So when i run this it works fine if i type in the name of the first node but none of …

Member Avatar for stephen.teacher
0
221
Member Avatar for imclumsy

Hi, I am trying to create a method to check if a binary tree is an AVL tree without using the height method of the author's binary tree. This is my code USING the height: [code] public boolean isAVL(BinaryNode<AnyType> t) { int leftSubtreeHeight; int rightSubtreeHeight; if (t == null) return …

Member Avatar for JamesCherrill
0
258
Member Avatar for moaz.amin.37

i can understand it when we want to implement polymorphism in c++ we use virtual functions and function overriding but when we want to implement polymorphism in java then we do not use virtual methods why. in java we use simply reference object that can store the address and use …

Member Avatar for Slavi
0
256
Member Avatar for Slavi

I made the famous game Scissors, Paper, Rock as console application. The game runs great ... Now I want to make it a bit more advanced and allow 2 clients/users to play against each other from different locations. I checked few tutorials on sockets and networking, and in them they …

Member Avatar for Slavi
0
250
Member Avatar for anita_2

There is series of 20 numbers composed by two numbers is given like 9876,7698,7676,9898,987698,769876 Develop a logic in java to find out these two numbers series composed by First number is - 98 Second is-76 How to develop a logic Another series - 1213,121312,1313,1212,12131213 First Number-12 Second Number-13

Member Avatar for JamesCherrill
0
159

The End.