32,199 Topics

Member Avatar for
Member Avatar for Eddi

Hi Dani, fine Examples (the others too) to learn programming Java, but where is the MyInput.java class? Thanks Eddi

Member Avatar for cms271828
0
361
Member Avatar for Dani

This program consists of two functions in one class. It demonstrates a recursive function to calculate the factorial of a number.

Member Avatar for dharween0629
0
213
Member Avatar for rrspen316

I am having an issue with my program. If I select one of the three calc buttons it works fine and shows the amort table correctly. If I put information in the text fields for amount, interest, and years and hit calculate button I get little boxes in the amort …

Member Avatar for VernonDozier
0
223
Member Avatar for Alpdog14

I am writing a small Java program and need help using a simple search code. It is not compiling. [CODE]public int indexOf(EltType e) { int i=0; for (i = currsize; i < currsize; i++){ things[i] = e; e.equalts(get(i)); } return -1; }[/CODE] Basically I want to get the position number …

Member Avatar for javaAddict
0
161
Member Avatar for dasatti

Hi, I need already written code for a simple file and folder explorer in Java similar to Project Explorer in Net Beans IDE. Instead of writing it from scratch I hope I can find which is already written. It will be very good if it allows file/directory add, remove and …

Member Avatar for dasatti
0
2K
Member Avatar for akulkarni

I am trying to design the game Bulls and Cows we have a word to guess eg:"fame"(four lettered) if i type abcd bulls=0 cows=0 efgh bulls=0 cows=1 (if the letter is at the same positon as the word we give bulls. If the letter is in the word but not …

Member Avatar for akulkarni
0
1K
Member Avatar for and12

I Don't want to use keyListeners anymore since it's there's too many unfixable bugs with it. [B][U]Problem#1[/U]: I am now trying to have a Label say "Enter a consonant" and beside it a textField that should be the size of one character. I tried setColumns(1) but it won't work and …

Member Avatar for sneaker
0
271
Member Avatar for and12

To say that I am not offended at being called "incompetent" in what i thought was supposed to be a friendly forum would be lying. [B]I stated long ago that i was NEWBIE to java. [/B] All i meant by my original post was why not MAJORITY of people can …

Member Avatar for javaAddict
0
144
Member Avatar for jamojo

Hello Everyone, Can you please give me some thoughts on how to create a folder in http(Ex: [url]http://localhost:8080/site/myfoldertocreate[/url]) instead in a local drive (Ex. C:\MYFOLDER) Here is the current code that I am using. [CODE]public static void createFolder(String Folder){ try{ File f = new File(Folder); if(f.mkdir()) SimpleLog.write(Folder + " Directory …

Member Avatar for jamojo
0
120
Member Avatar for Ghost

Hi: I was wondering if anybody knew anything about creating your own programming language. Thanx

Member Avatar for zack999
0
154
Member Avatar for coud_ren_26

may someone give me a sample code of loop within a loop, and other that I may use for decision in my program.

Member Avatar for akulkarni
0
164
Member Avatar for sandeepgrandhi

Hi, I have installed netbeans to work on java. I heard that we can simply drag and drop buttons,radiobuttons, and all and we need not write the actual java program.But I am unable to find how can i drag and drop. can any one help me. Thank you.

Member Avatar for dasatti
0
72
Member Avatar for gauravagg2

Hi!!!!!! I am facing a problem at the run time of the java byte code. I am using JDK 1.5 in OS Win XP on and i have installed it properly... its compile time is working exactly i.e. javac command produces byte code but when i use command java class-name …

Member Avatar for harsh2327
0
89
Member Avatar for llemes4011

I need a diversion, and I was wondering. What would be a good library to write? It's somethings that I've wanted to do for a while, just never gotten around to. I was thinking about a lib for some of the methods that I often use, just much more generalized …

Member Avatar for javaAddict
0
94
Member Avatar for nicolek808

I need help. I dont know what to do next to get the following output: groceries.csv: (file needed to input at command prompt (args)) Name, Number natto, 3 eggs, 12 shiitake, 1 negi, 1 garlic, 5 umeboshi, 1 (need to output as shown below): number of integers in file "groceries.csv" …

Member Avatar for javaAddict
0
142
Member Avatar for msalahu

Hello everybody, Infact this Alarm.java (attached) using sun proprietary API sun.audio classes, now these are deprecated so i want to replace it with java se 6 classes. This Alarm.java is beeping the PC but not able to run alarm.au(attached)audio file and gives Following exception Exception Occurred....java.lang.IllegalArgumentException: No line matching interface …

0
48
Member Avatar for BlackPhoenix

Hi guys, Posted about a week ago saying I was re-learning Java and slowly making my way from basic console stuff to 2D graphics. Well after a good deal of learning about applets and threads, drawing 2D shapes, and double buffering, I decided to remake "Pong", at least a crappy …

0
84
Member Avatar for and12

I have my game [url]http://blogfriendlyzone.webs.com/wof/WOF.html[/url] and i tried to share it with some online friends but some complain that they can't even spin the wheel or they can't enter a consonant (after spinning wheel):-O . It won't accept their consonant from the keyboard like it should. Is there something i …

Member Avatar for and12
0
242
Member Avatar for fcr7

I am trying to create a postfix evaluator that uses my IntStack and IntNode class. I cannot figure it out. HELP PLEASE! public class IntStack{ private IntNode top; private int counter; private IntNode pos; public IntStack(){ top = null; counter = 0; } public boolean isEmpty() { return (top == …

0
51
Member Avatar for dnyce 215

In class I have to create a java program that has to use the user method. Here is my code. 1 import java.text.*; 2 import javax.swing.*; 3 import java.io.*; 4 public class Fahrenheit3 5 { 6 public static void main (String [] args)throws Exception 7 { 8 String inFahrenheit; 9 …

Member Avatar for VernonDozier
0
120
Member Avatar for anuj_sharma

hey guys, I want to develop a web application using Java but i don't know where to start from. From where i should start learning and what all should i learn??

Member Avatar for Majestics
0
98
Member Avatar for netbeanguy

hi please i deperately need help been trying to compile this code on netbeans IDE but it keeps giving me error on the output code is: package gameapplication; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Vector; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; /** * …

Member Avatar for VernonDozier
0
137
Member Avatar for tejasthacker

Hi this is a decompiled version of a guessing game which i am required to submit in assignment. can anyone please make it run anyhow. i hav also attached sample from which i generated code any help will be appreciated. Thanks [code=language] // Decompiled by DJ v3.11.11.95 Copyright 2009 Atanas …

Member Avatar for VernonDozier
0
168
Member Avatar for rajuchacha007

Hello, I am working on a code which should execute any *.exe file in java. I have used a sample code which works for UI based application but do not work for command prompt applications like cmd.exe or mysql.exe. Please advise for the improvement. Thank you in advance. Here is …

Member Avatar for Salem
0
175
Member Avatar for latinajoyce

im working on this java program: Create a Java program that creates six random numbers between 1 and 10 and for each randomly generated number it displays the text describing the number rather than the numerical value. For instance, if the number generated was 3 then it should display three; …

Member Avatar for javaAddict
0
112
Member Avatar for jooa

[CODE]double s = 1/(noOfPhases + 1);[/CODE] When I print the s the value I get is zero however when i print noOfPhases the value is 3. If i do the following [CODE]double s = (noOfPhases + 1);[/CODE] the value returned is 4. Why can I not not do 1 divided …

Member Avatar for Ezzaral
0
68
Member Avatar for erietha88

I have these code below for the button : [CODE] import java.awt.*; import java.applet.*; import java.awt.event.*; public class Coba extends Applet { Button button1; public void init() { Font font = new Font("TimesRoman",Font.BOLD,16); setFont(font); button1 = new Button("Level Easy"); resize(250,250); LevelEasy lvleasy = new LevelEasy(); button1.addActionListener(lvleasy); //button1.addActionListener(this); add("Left",button1); } private …

Member Avatar for erietha88
0
924
Member Avatar for coud_ren_26

I am doing a cash registry program and I want to use a multidimensional array. May someone give me a sample code for it. The sample code must be as simple as possible just for my reference. Reply will be appreciated very much.

Member Avatar for kvprajapati
0
123
Member Avatar for tha_ratl

Hi all, I need help regarding following problem. I'm getting HTTP get responses from a program(Kannel) periodically. The HTTP is in the following format. "http://localhost/sms.php?A=10&B=abc" I want to know whether is it possible to get the values of A & B using a Java program (not JSP) as soon as …

Member Avatar for tha_ratl
0
151
Member Avatar for and12

I have a cardlayout of pictures but i want to know if i can produce some special effects like they have in MS Powerpoint where the picuture slides can fade in/out or swirl into or out of the panel or display text words one at a time, etc. Is it …

Member Avatar for llemes4011
0
102

The End.