32,204 Topics

Member Avatar for
Member Avatar for Mandarinire

Hi guys, Can you help me out with this project. My head is fried with this now. I am getting confused when you have to call on functions outside the class and variables from outside the class. What i need to get done is the following: a. Add a close …

Member Avatar for javaAddict
0
2K
Member Avatar for don_donnay

I have an exam tomorrow and this is a practice program, I am very lost could some body help me please Moving Hero The hero in this scenario should move "forward" whenever act is called. Note that Hero is a subclass of Actor, so there is no move method defined, …

0
85
Member Avatar for PhiberOptik

Hey guys I am playing around with tiled (tileset mapping system) it outputs the maps in an xml style format the core data of where the image pieces go in base64 gzip. [CODE=xml] <data encoding="base64" compression="gzip"> H4sIAAAAAAAAAO3DAQ0AAAwCIHuY4v3LGeSw0UuqqqpPDh0GsvgACwAA </data>[/CODE] I'm not sure where to go to unzip this string, I have …

0
64
Member Avatar for saveyourselves

I am so confused in how to go about starting this, I have the information i need to input into the program but seeing the structure on how the program is laid out is my problem. Any example would be of great help. 1. Sandwich class to simulate the sandwich …

Member Avatar for kvass
1
215
Member Avatar for vampgirl13

Hi Guys, So I'm trying to fix a small problem with my code. It does everything correctly but when reading from the file I want to not count the space between words. For instance if the line is Hello world the output should be: 11: Hello world but instead it …

Member Avatar for vampgirl13
0
105
Member Avatar for nicole200718

When I enter done that doesn't work and it won't put the what I say that my title is for when it says please enter the relase year for? I don't know if my variables are initialized correctly? [CODE] // variables local to main String title = ""; int releaseYear …

Member Avatar for BestJewSinceJC
0
107
Member Avatar for jofin123

Hi Friends i want to Print the JTable content with Grid Could you please help me how to do that I AM POSTING my CODE HERE [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.table.*; import java.util.*; import java.sql.*; import java.awt.print.*; public class Report extends JFrame implements ActionListener, Printable,Pageable { private …

Member Avatar for rdavid
0
180
Member Avatar for litchi

Hi :) I am writing an application that converts text to braille for a varsity project. I got it working by using a library given to us by our professor, but I am trying to understand the code I am using, so I am re-writing the code and omitting any …

0
66
Member Avatar for SammC

I have a java question regarding get/set and overloading constructors: The problem is my calculations are not happening. Can someone tell me what needs to be done to get the calculation to work? Thanks in advance .... Samm [B][U]The output is:[/U][/B] After attempting to set to invalid Values (0 & …

Member Avatar for SammC
0
93
Member Avatar for system analysis

-The Rectangle class) Design a class named Rectangle to represent a rectangle. The class contains: 1. Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 for both width and height. 2. A string data field named color …

Member Avatar for Salem
0
151
Member Avatar for chern4ever

i have 2 applets each in separate files. lets say i wan to click a button in applet1, and it will show applet2, hide applet1 and vice versa. how can i achieve tat? [CODE]/** * @(#)ATM.java * * * @author * @version 1.00 2010/3/1 */ import java.awt.*; import java.awt.event.*; import …

Member Avatar for jamesonh20
0
119
Member Avatar for komyg

Hi, I've created a Web Service application inside Jboss 4.2.2-GA and I want to set up the jboss log4j configuration so that my Web Service logs inside a custom log file (not inside the server.xml). To do this I've altered the jboss-log4j.xml file to create another appender. This file is …

Member Avatar for komyg
0
200
Member Avatar for sharao

which one is better to get data from session r from database when we consider performance as well as security issues, and one more case too if the site is access by more ppl at a time also.... thanx..

Member Avatar for jwenting
0
46
Member Avatar for arivu2020

I am doing Java project ,in that I am trying create a chat program with multiple clients using the stream socket.The server can send message to all or any one client in the network. Client can communicate each other. Can any one help me. Thanks in advance.

Member Avatar for jwenting
0
76
Member Avatar for Geodude0487

I'm trying to write an external log-in class for my Adv Java class in school. It's an online section and the teacher is very hard to reach thus why I'm asking for help here :). But my problem is right now I have my log-in form and I have it …

Member Avatar for Geodude0487
0
123
Member Avatar for adityagadre

Please provide a sample stateful webservice in java which would be accible in both java and .net clients.

0
80
Member Avatar for anders10

Hi! I have a problem with an unintentionally exiting of a while loop. I'm trying to do a simple tic tac toe program. When one player has won the game, for example three X:s in a row, the program says "X wins!". So far OK. And thereafter I want the …

Member Avatar for gangsta1903
0
113
Member Avatar for OffbeatPatriot

I don't have ambitions of making a Turing complete language but I thought it might be cool to look into, at this moment my goal is pretty much to just do integer math, maybe functions. I've got the Antlr IDE plugin for Eclipse and I wondered if it would be …

Member Avatar for OffbeatPatriot
0
107
Member Avatar for hikma
Member Avatar for stultuske
0
89
Member Avatar for Waseem2010

Guys I need a good career advice. I am currently working in a IT consulting firm as a junior java developer. My firm wants to upgrade my skills. Since its a consulting firm they want to add extra skills in me to make me more productive. They have given me …

Member Avatar for stultuske
0
84
Member Avatar for eikal

hi i'm working on a program using all if else statements. I think i've lost myself in all ifs and elses and i need your guys help! It was working fine until i added some new if elses in the middle of the code heres what it looks like [code=java]import …

Member Avatar for stultuske
0
140
Member Avatar for Ghost

Hi, I'm trying to run my program in command prompt, but i get this error: [CODE] Exception in thread "main" java.lang.NoClassDefFoundError: Invaders [/CODE] Can anybody tell me what this error means? Thanx.

Member Avatar for stultuske
0
2K
Member Avatar for linkinmal

I'm trying to develop an editor application that support both text and drawings, images, etc. But all of these should be the same abstract object, they inherit the same thing. This will be like MS Word and I need to create a new component in the view for every element, …

0
64
Member Avatar for acid13burn24

ei guyz, i am new in java world, i knew some but i can't understand the some of them... can you help me to do the atm program,? can you share the codes?? thanks a lot..

Member Avatar for stultuske
-2
102
Member Avatar for PhiberOptik

Hey guys I am making a 2d RPG style game. I have a series of small images for each character choice, npc, etc which is integrated to each movement, how do you recommend I store these? Ie. Compile into a zip archive or jar archive...or just a folder within the …

Member Avatar for jwenting
0
83
Member Avatar for Aucun

I'm having weird applet errors, it runs fine in JCreator but then when I make a html file with [code]<applet code = "http://myrealsite.net/testapplet.class" width = "500" height = "500">[/code] It says it can't find the .class file when i have it right there and i can go to [url]http://myrealsite.net/testapplet.class[/url] and …

0
35
Member Avatar for beforetheyknew

I need to create date objects, to do that i think i need to use simpleDateFormat buuutt I'm using a startDate and endDate as parameters, so i dont know what to do. I've got another method that returns an int for number of days between them. Sorry I'm still an …

Member Avatar for Ezzaral
0
142
Member Avatar for xxunknown321

how do i read in files from a ".txt" file into a linked list heres my code. [CODE] import java.io.*; public class LinkedList1 { class Node { String element; // list element Node next; // successor link Node(String el, Node n) { element = el; next = n; } Node(String …

Member Avatar for BestJewSinceJC
0
193
Member Avatar for Polaris87

Hello all, New to the forum and to java. Here is an assignment I have been staring at for days. When I run my program it is multiplying the the loan amount by the interest rate and spitting thaT out as the answer for the monthly payment. What am I …

Member Avatar for BestJewSinceJC
0
146
Member Avatar for gaya88

hi I have a problem regarding calling print() method through main().It asks to pass arguments but i already done so using constructors.Any help in missing statement. [code] public class ElectricityBill { public static void main(String args[]){ current c1=new current(500,"January"); current c2=new current(1600,"February"); c1.print(double total,String month);/[COLOR="Green"]/this is the place i wanna …

Member Avatar for PopeJareth
0
163

The End.