35,618 Topics

Member Avatar for
Member Avatar for suger

[COLOR="Green"]Hi guys Can anyone show me some pieces of pseudo code to show how to drag the shape to move to anywhere when the mouse is released? Thanks heaps[/COLOR]

0
64
Member Avatar for lprk94

Hey everyone! So, I'm making a hangman game. I'm at the very beginning stages so I just have a String array and just to make sure it works correctly I want to print a random word from the array - simple, right? I am running into an error - the …

Member Avatar for lprk94
0
216
Member Avatar for rowen17

after compiling it this errors came out, what do u think is the possible solution for this? thanks! Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9 at accountinfo.<init>(Main.java:73) at accountinfo.main(Main.java:142) [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; class accountinfo implements ActionListener { private JFrame f3; private JButton jLogout; private JPanel …

Member Avatar for rowen17
0
177
Member Avatar for rcossy1023

Sorry about the double post but i dont know if you can delete posts? Anyway I need to have a circular linked stack where after 5 pushs the 6th push goes into front and replaces the data starting at front and going back. So theoretically if I put in a …

0
64
Member Avatar for Ja9mc

public int getInput() throws IOException ........more codes here in between return activity;//activity is an array The error is this: '.class' expected

Member Avatar for Ja9mc
-1
129
Member Avatar for rocku2008

i m not very clear about constructors,and different types of variables like:instance variables,local variables,etc,setter and getters. can u plz help me to distingush between all of them with examples?

Member Avatar for adams161
0
57
Member Avatar for Evanp

Hey, I've been working on a space invaders program for a class, and have gotten all of code correct except the collision that removes the sprite entity upon being hit. the RowofAlien code [CODE]import java.awt.Graphics; import java.awt.Image; // You do not have to throw an exception if an index is …

0
52
Member Avatar for jrookie

Hi, I'm trying to write a program right now that requires inheritance. I understand the concept and what I'm supposed to do, but I'm having trouble with the syntax. I created a class called student and created its methods and attributes, and then I created a constructor called student. Next …

Member Avatar for JamesCherrill
0
115
Member Avatar for aramesh1989

hi I have to use https protocol in my project. But I dont know how to use it thorough servlets plese guide how to use it. I am using Websphere as my application server. How to congigure it for Https

Member Avatar for aramesh1989
0
99
Member Avatar for tkpanther

Hello everyone, It has been a while since I last logged on. It has been a while since I really needed any major help in programming. But I am here now and I do need a bit of help. Let me start off by saying that I have tried to …

Member Avatar for tkpanther
0
3K
Member Avatar for 2brite

HELP Please - I have hit a wall in trying to get the following perl created web page to work correctly. It is designed to find all the pictures (.jpg) in all folders below the designated one and to then display them in individual slideshows. I have a version of …

Member Avatar for mitchems
0
122
Member Avatar for sciprog1
Member Avatar for sciprog1
0
78
Member Avatar for rcossy1023

I am trying to write a dropout stack/queue using a Linked List, I have already done the code for Arrays but I am coming across a problem. I do not understand doubly linked list, specifically creating a pointer the previous. I believe I have done the push correctly (5 being …

0
59
Member Avatar for adobe1

I have this problem it go thus; E=MC~2(change in mass*C square) where E=energy produced(in joule),M=change in mass(in kg),C=speed of light(3.0*10`8ms~1) work of EINSTEIN. I was asked to write a computer program to calculate the energy produce when mass is know. pls help.

Member Avatar for adobe1
0
52
Member Avatar for shrutinr

Hi.. I m haiving problem in retrieving selected data from combobox of servlet page . I have combobox in servlet and want to display selected value in d same page.. please help me to resolve this problem.. Here is my code: [code=java]PrintWriter pw=response.getWriter(); pw.write("<h1>Welcome to Shopping cart</h1>"); pw.write("<form name=myform method=post>"); …

0
65
Member Avatar for shrutinr

Hi.. I m haiving problem in retrieving selected data from combobox of servlet page . I have combobox in servlet and want to display selected value in d same page.. please help me to resolve this problem.. Here is my code: PrintWriter pw=response.getWriter(); pw.write("<h1>Welcome to Shopping cart</h1>"); pw.write("<form name=myform method=post>"); …

0
74
Member Avatar for lotrsimp12345

TITLE SHOULD ACTUALLY BE: how to get mouselistener to work on method in an class in java If I click a circle it should change the color of the circle. But, I am having difficult getting it to work. Help appreciated. Main just calls this class and calls the init …

Member Avatar for quuba
0
265
Member Avatar for ceyesuma

Hello. I am not sure how this is supposed to work. I need to find a file that will be in a folder data/gm in my package. If I move the program around is there a way to have the program find its new absolute path [icode].getAbsolutePath()[/icode] from its path …

0
74
Member Avatar for warook

So We will create a java program but i don't know how to start it. We should use OOP in this one. And there should be minimum of 3 classes (including the main).. Buy n’ Sell An electronics and appliance store would like to install a kiosk for customer use. …

Member Avatar for peter_budo
0
111
Member Avatar for warook

So We will create a java program but i don't know how to start it. We should use OOP in this one. And there should be minimum of 3 classes (including the main).. Buy n’ Sell An electronics and appliance store would like to install a kiosk for customer use. …

Member Avatar for JamesCherrill
0
318
Member Avatar for maxamillian

im new to java and need help with this code. i need to show stars to represent the numbers which have been entered. so far my for loop is only showing the one star, how can i get it to show the number of stars which represent the amount of …

Member Avatar for jon.kiparsky
0
81
Member Avatar for mangeshminal

I want to create linked list of type LinkedList<LinkedList<Integer>>. I plan to take integer values from user (via console), create a linkedlist by adding the values. Create multiple such linked lists and then create a master linkedlist which will have individual linked lists as its elements. Example: User types 1 …

Member Avatar for quuba
0
102
Member Avatar for sToXiC

Hello all. I have a string, e.g. "Testing" and I try to convert it to byte but I get a NumberFormatException. I tried with (byte), Byte.Parsebyte. Any help? thanks

Member Avatar for sToXiC
0
159
Member Avatar for Sunshineserene
Member Avatar for Oregand

Hi guys, This week Ive been given a problem to: Take a set list of English phrases and convert them to a set list of pirate phrases. i.e. Hello would be entered by the user and Ahoy would be printed etc. My idea is to create two arrays, One will …

Member Avatar for Oregand
0
140
Member Avatar for IamNotSam

Hi, I have a task which involves using a queue in order to fill an enclosed region. For example I have chosen this 2d array to apply a flood fill technique to. [CODE] int[][] shape ={ {X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X}, {X,X,X,0,0,0,0,0,0,0,0,0,0,0,0,0,X,X,X,X}, {X,X,X,0,X,X,X,X,X,X,X,X,X,X,X,0,X,X,X,X}, {X,X,X,0,X,X,X,X,X,0,0,0,0,0,0,0,X,X,X,X}, {X,X,X,0,0,X,X,X,X,0,X,X,X,X,X,X,X,X,X,X}, {X,X,X,X,0,X,X,X,X,0,X,X,X,X,X,X,X,X,X,X, {X,X,X,X,0,X,X,X,X,0,0,0,0,X,X,X,X,X,X,X}, {X,X,X,X,0,0,0,0,X,X,X,X,0,X,X,X,X,X,X,X}, {X,X,X,X,X,X,X,0,X,X,X,X,0,0,X,X,X,X,X,X}, {X,X,X,X,X,X,X,0,X,X,X,X,X,0,X,X,X,X,X,X} {X,X,X,X,X,X,X,0,X,X,X,X,X,0,X,X,X,X,X,X} {X,X,X,X,X,0,0,0,X,X,X,X,X,0,X,X,X,X,X,X} {X,X,X,X,X,0,X,X,X,X,X,X,X,0,X,X,X,X,X,X} {X,X,X,X,X,0,0,0,0,0,0,0,0,0,X,X,X,X,X,X} …

0
71
Member Avatar for prem2

Dear team, Hi all i have implemented google data api in my project. I have downloaded the api from the below url.This api is used to delete,add,update the google contacts.I have successsfully add ,list the new contacts. [url]http://code.google.com/apis/contacts/docs/3.0/developers_guide_java.html#GettingStarted[/url] But i do no how to delete the contact using this api …

Member Avatar for prem2
0
277
Member Avatar for LianaN

Hi! I would like to change the string: [ICODE]"reg_num, reg_date, attached_file, Description"[/ICODE] to the new string: [ICODE]"reg_num, reg_date, Description, attached_file"[/ICODE]. So, what I need is to search the substring "attached_file" and put in at the end of the main string. How could I do that? Thanks!

Member Avatar for LianaN
0
82
Member Avatar for sarika15m

dis is my first page regpage.jsp where i am filling all data when i click on submit it calls insertreg.jsp i can see in browser but it doesnt display anythin.Please help me. Thanks, Sarika [code]<%-- Document : index Created on : Nov 4, 2010, 9:32:00 AM Author : sarika.sharma --%> …

Member Avatar for Shanti C
0
75
Member Avatar for H0AX4

Am writing this program using two classes for my school project from last 4 days. I have completed this program I think but when am running this program, it shows no error also it doesn't show any logic or runtime error..just got blank screen after compiling. Am wondering that why …

Member Avatar for JamesCherrill
0
150

The End.