32,204 Topics

Member Avatar for
Member Avatar for shamagantu

Hello: A couple days ago I found an error log on my desktop (hs_err_pid6028.log), something about a fatal java error and a game called minecraft. I am pretty sure I never installed minecraft. That got me worried, so I browsed my java control panel and saw that there is no …

Member Avatar for Ummn
0
477
Member Avatar for dj4388
Member Avatar for rowen_1

The game starts off by distributing 4 cards for the deck such a way that the player receives the card first, then the dealer..and so on. round 1. the program will display the first two cards of the player and dealer the first card of the dealer faced down and …

Member Avatar for rowen_1
0
300
Member Avatar for beeho

Hello All, long time no see, I'm seeking for websites that provides practices of C++ and Java examples for programming students, the idea is to give me a programming question to solve in order to train myself. thanks.

Member Avatar for Hiroshe
0
364
Member Avatar for Adami

Hi guys, I wrote the following code: public static boolean match(int[] a , int[] pattern) { //need to use the overloaded method, in order to work with the static method. return match(a,pattern,0,0); } /** This is an overloaded method that match between a pattern to a given string (as an …

Member Avatar for Adami
0
3K
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
162
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
179
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
300
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
581
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
246
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
300
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
251
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

The End.