32,199 Topics

Member Avatar for
Member Avatar for AbbyVen

Hello everyone, I am completely new to this website and happened to have come across this while browsing. I am stuck up in my project and just need some help. I am developing a system for my client which is a non-profit organization htat run local trains in our area. …

Member Avatar for AbbyVen
0
77
Member Avatar for kimbostun

i am making a simple calculater , and know think i doing correctly but when i compile it it has error like this Exception in thread "main" java.lang.Error: Unresolved compilation problems: Syntax error, insert "}" to complete SwitchBlock Syntax error, insert "}" to complete Block Syntax error, insert "}" to …

Member Avatar for javaAddict
0
215
Member Avatar for almualim
Member Avatar for almualim
0
158
Member Avatar for s080072

write a gui program to compute the amount of a certificate of deposit on maturity.the sample data follows: Amount deposited 8000.00 Years 15 Interest Rate 7.75 [B]Hint: compute 8000.00(1+7.75/100)to the power of 15[/B]

Member Avatar for alpe gulay
0
85
Member Avatar for hezfast2

Hello all, I'm writing a program that gets an input string entered and I was wondering if there is an exception thrown so that the string is valid only if it is all letters. I can find exceptions thrown for only doubles, int.... as valid input but none for only …

Member Avatar for hezfast2
0
102
Member Avatar for CCVM

Hi, I'm looking for some assistance to begin coding in Java, and I don't really know where to begin. I'm still attending school, and will be taking Java as an elective, but I still want to try to get a head-start, because I am very proficient in math, love (and …

Member Avatar for CCVM
0
68
Member Avatar for Tigairius

Well, I need a pretty simple code (Lempel-Ziv-Welch compression algorithm) converted from Python to Java. I don't want to run JPython because I don't need it to be interpreted as Java, I need to interpret it myself because I use a scripting language similar to Java, but not exactly the …

0
48
Member Avatar for gangadhar.in

I am new to java coding.I m struggling to make a below project. Can u plz. help on this project. Doctor Online Discussion Form This System is mainly used by Doctors, Dentists, Optometrists, and any medical professional. Medical Professionals use photos on a daily basis in the practice of medicine. …

Member Avatar for ~s.o.s~
0
134
Member Avatar for Ajuddy

here is the question. i have done half of it. > a company has 4 sales persons, who sell 5 different products, once a day each salesperson passes a slip for each product sold. > the slip contains: sales person no., product no., total cash value for the products sold …

0
59
Member Avatar for ntdaycott

Hi, I am trying to put a date in my class which is 2 weeks ahead of the current date. The problem is that is shows the date as april not may? Any help would be much appreciated. Thanks in advance Below is the issue.class in question [import java.util.*; public …

Member Avatar for jwenting
0
87
Member Avatar for D boss

hi guys i am trying to create a button that sends all the data returned from my ms access database into the fields of my jframe to the printer for a hardcopy, i have created a button to exit the frame, but now i am having difficulties creating a print …

Member Avatar for javaAddict
0
115
Member Avatar for aznnytezx

import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Random; public class snake1 { public static void main(String args[]) { String name1= JOptionPane.showInputDialog("Enter Player one's name"); Windows myW=new Windows(name1); myW.setSize(800,600); myW.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent event) { System.exit(0); } }); myW.show(); while(true) { myW.repaint(); try{Thread.sleep(60/myW.getLevel());}catch(Exception e){} } } } …

Member Avatar for jasimp
0
97
Member Avatar for alpe gulay

..I made a simple project in java using JCreator.., this is my first time to make a project file,. I made a class named put_data in w/c will put some data in my database then, I made also another class get_data in w/c will get the data from my database!.. …

Member Avatar for alpe gulay
0
73
Member Avatar for regent_royal

Hello friends, I want to overlap two JPanels at same location in the same frame... by clicking button on the same frame. If one panel is setVisible(true) at the same time if I click button and this Panel will be setVisible(false) another will be setVisible(true) but that does not resolve …

Member Avatar for masijade
0
67
Member Avatar for Anime10112

Hello, Im new to Java Programming, and Im trying to create a Web Applet of a Income to Debt Ratio calculator. I think Im missing a Math code, because when i run the applet everything works except the when I click calculate it says my debt to ratio income is …

Member Avatar for jasimp
0
107
Member Avatar for rohanbk

Hi: I'm having trouble trying to place images in a Java GUI. Basically, I have an array that contains a 52 card deck in String form, and whenever I call one entry from the array, I want to display a gif image of that card. For example: [CODE]if(cardarray.compareTo("King of Hearts")==0){ …

0
62
Member Avatar for pattyps36

Help please! I need help putting the timer in the event, and putting it in the class. I am having problems with the class particularly the scoreboard timer. I believe I figured every thing else out..Please view attached.

Member Avatar for pattyps36
0
121
Member Avatar for msnider9

I am not able to click on the menu choices and have them fill out the form. I also am not certain that it is reading from the text file. Can someone check and let me know what I need to change in this program? [code] import java.awt.*; import java.awt.event.*; …

Member Avatar for peter_budo
0
86
Member Avatar for Motvel

Which functions can help me to convert a DATE() into a double or integer number? Can i convert a Gregorian intro Julian date? Thankyou.

Member Avatar for Motvel
0
92
Member Avatar for kimbostun

i want to Write a program that can serve as simple calculater in java programing that can add , subtract , multiply and divide this example that i want to it look like Calculator is on. Result =0.0 +5 Result +5.0 =5.0 New result =5.0 *2.2 Result * 2.2=11.0 Update …

Member Avatar for jwenting
0
102
Member Avatar for anbuhikaru

i need to convert this JApplet program into a JFrame, but dont know how to do it, can anybody help me please? [this is extremly urgent as i need to have this done by tuesday] [code=language] /*Game.java 5.5.08 This program, Game.java, is an educational game that tries to allow the …

Member Avatar for jwenting
0
84
Member Avatar for mattcrow

Hi everyone I need to hand in this assignment today :( Im trying to read from a file and read it onto the screen, my code keeps showing up an error saying 'java.lang.NoSuchMethodError: Main' Here is my code: import java.io.*; import java.awt.*; import java.applet.*; public class Empty_3 extends Applet { …

Member Avatar for javaAddict
0
143
Member Avatar for anbuhikaru

I need to read in text randomly from a text file, so does anybody have code for that? pretend the text file is called CommunityChest.txt i prefer the use of the scanner class or the use of text readers thank you! the text file is included below if anybody needs …

Member Avatar for javaAddict
0
177
Member Avatar for sujith.1728

hi Iam sujith , and i have done B.Tech in information technology and iam at presently working for a small company for 1 and half years. and now i want to switch to a better company . i have applied for many , but no response are comming , my …

Member Avatar for jwenting
0
80
Member Avatar for tye680

I currently am on IE , but dont know which version. I believe its 7 but im not positive. For the last 2 weeks ive not been able to click on certain links (mostly myspace links but others as well) For instance, Ill click on it, and on the bottom …

0
20
Member Avatar for NycNessyness

Hello. I'm having troubles with my JComboBox calculations. For example, if the strings in my JComboBox were String[] name = { "John", "Tom" }; And Tom was assigned 15% to his name. How can I have the cases in my action performed reach out to a calculation class to perform …

Member Avatar for NycNessyness
0
113
Member Avatar for BBaller1211

I have a Pong game with a level editor (as long as you have the source code) where you can put walls where you want. There are also walls that only balls hit by the player can pass through, walls that only balls hit by the Cpu can pass through, …

Member Avatar for BBaller1211
0
99
Member Avatar for hurly

Ok, I'm stumped and asking for a push. I need help adding an instance variable for my timer in my frame class. After that I need to : Instantiate your timer. Pass in the initial time (in seconds) and a reference to your timer display JTextField object. This can be …

0
59
Member Avatar for BBaller1211

I'm new to Swing, and still relatively new to Java as a whole, and am having trouble with my first Swing program. I'm trying to make a simple Pong game - it will display the title screen with a "Play" button on it that when pressed starts the game. Here …

Member Avatar for BBaller1211
0
80
Member Avatar for alannabrittany

Problem Math Input File: MathIn.txt Output File: MathOut.txt Project File: Math Mathematicians on the planet Earth, write math expressions using in-fixed notation. In this notation, math operators are written between the operands they operate on (e.g., 2 + 3). On Mars, math strings are written in post-fixed form. In this …

Member Avatar for javaAddict
0
122

The End.