32,204 Topics
| |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 & … | |
-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 … | |
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 … | |
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 … | |
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.. | |
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. | |
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 … | |
Please provide a sample stateful webservice in java which would be accible in both java and .net clients. | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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, … | |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.