36,051 Topics
![]() | |
Here is a code to sort numbers instead of strings using the BubbleSort method. The difference here is you don't use compareTo() for numbers as you do with strings. | |
Hi Dani, fine Examples (the others too) to learn programming Java, but where is the MyInput.java class? Thanks Eddi | |
This program consists of two functions in one class. It demonstrates a recursive function to calculate the factorial of a number. | |
hi i need list of cities, when user select the agency....just like if we select state in one list box, in another list box have to get list of cities to that particular state.... for that i did some process but little bit error plz follow the code... actually i … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi all, I want to run jsp programs, where should i place the folder in tomcat5.5 and how to run it. please help me out. Thanks | |
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 … | |
Hi: I was wondering if anybody knew anything about creating your own programming language. Thanx | |
may someone give me a sample code of loop within a loop, and other that I may use for decision in my program. | |
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. | |
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 … ![]() | |
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 … | |
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" … | |
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 … | |
Hi, I have buffer with data, which I am presenting as JSP/javascript page. I want to send the data to the printer in totally different format of the one presented on the screen. The size of the buffer is not known, and it may take some pages- I want to … | |
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 … | |
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 … | |
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 == … | |
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 … | |
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?? | |
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; /** * … | |
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 … | |
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 … | |
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; … | |
[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 … | |
Hi all, how to do xml mapping in tomcat5.5 i have an xml code here just tell me what should be thier in blank space <web-app> <servlet> <servlet-name>firstservlet</servlet-name> <servlet-class>........</servlet-class> </servlet> <servlet-mapping> <servlet-name>firstservlet</servlet-name> <url-pattern>.............</url-pattern> </servlet-mapping> </web-app > thanks | |
Hi, I have deployed my folder called Library in web apps tomcat5.5, i can find my folder in the tomcat manager, but when i click its showing this error: requested source in not available (Library) As i am new to this i dont know how to proceed please help me … | |
Hi all, I have deployed my folder in tomcat5.5, while running its giving error xml validation disabled. so please help me how to run my program.. regards ishlux | |
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 … | |
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. | |
hi i hav problem with ms acess conectivty and Jsp plz help thanks in advance | |
Hi all, I have installed tomcat 5.5 , now i want to run a simple servlet programme, on web browser, how do i deploy my folder into tomcat 5.5.....i am giving [url]http://localhost:8080[/url]. its giving page cannot be displayed......... please help me out. | |
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 … | |
I am trying to setup a tomcat server in eclipse galileo java ee to test a servlet. I have web tools installed also. I created a server but when I go to my web browser and go to [url]http://localhost:8080[/url] I get an http status 404 error. My server is started … | |
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 … | |
Hello everyone.. My question is how to display data from my database. So when I open my index.jsp file, the data already display on it, it doesnt have any form. Is servlet can do it, or just do it in index.jsp file. I prefer with servlet, but I don't know … | |
I need to write few class which are to be used to validate the data. I know some validations which we will use generally. if anybody knows more please help me by providing the list of some more validations. The validations which I know are as follows: String: length isAlpha … | |
Hello, I have been working with ASP.NET for quite sometime now. I wanted to know if we have DataBinding functionality in JSP too? | |
hi to every body.me is new in java.in future i want to built a software in java. so i want to b a java java java master.is someone who can guide me ? is? | |
Hi, I have a program that draws a line between two points when the user clicks at two points on a canvas (added in a frame) and clicks Repolot button. Each time i click the button the previous line is gone. But i want that when i click the button … | |
![]() | Hi, I'm trying to use the request.getParameter("myInputField") on Page A. The problem is that the input field "myInputField" is on Page B. Does anyone know of a way to retrieve from Page A, the value of the input field that is on Page B? Thanks, -Ash ![]() |
guys i need to develop a smal web site using abouou tools and must have a working data base. the problum is i only know about oracal.so i need to kbow about jsp (how to creat a jsp file,how to connect a data base,how to handle a data base ...blah … | |
Hi guys, i've been stuck on one part of an assignment where i have to call a number 6 times from a different method/class. I thought maybe doing a for loop calling its 6 times but i'm not sure how to call the method into the other method, this is … | |
I created an array, and I am trying to pass it to a method then double the size of that array. Than I would like to print the array. I am at a loss right now as to why it wont print, and what I am doing wrong. Any help … | |
Let's claim that I have jar called j.jar in folder called: my_folder. Then in this jar I have folder called:javclass and in this folder ther is main class called: main.class. And I have a question: How html file which opens it should look like ?? |
The End.