32,204 Topics
| |
Newbie trying really hard to understand what she is doing wrong. Your help would be appreciated. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhmt1-strict.dtd"> <!-- Fig. 8.12: Product order.html --> <!-- Product script. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Product Orders</title> <script type … | |
Newbee needs help with program. If you would be so kind to tell me where I am going wrong. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhmt1-strict.dtd"> <!-- Fig. 8.12: Product order.html --> <!-- Product script. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Product … | |
[B]Hello, I'm currently having some problems with the StringTokenizer from java util. I've declared a StringTokenizer like: [COLOR="Red"]StringTokenizer token = new StringTokenizer(line,"|"); [/COLOR] to token out a string read from a txt file such as: [COLOR="Blue"]Diablo|RPG|PG|PS2|20[/COLOR] and it works fine(detects all the "|" as delimeters) :) The problem now is, … | |
This program creates 2 methods for convenience: menu() and binaryQ(). The menu method accepts several strings as its parameters. The first of the strings is the question to be displayed at the top of the menu. The following strings are the menu choices. For instance, if you call [icode]Confirmer.menu("What is … | |
my program is compiled.but on run that i have message "Exception in thread "main" java.lang.NullPointer Exception" 1. class Rev 2. { 3. char a[]; 4. char i=3; 5. void str() 6. { 7. for(i='A';i<'D';i++) 8. { 9. a[i]='i'; 10. } 11. } 12. void show() 13. { 14. for(int i='A';i<'D';i++) … | |
Hey, I dont know where to start with this problem so I have a super class(Transaction) that has a constructor and I have 2 sub classes (rental and return )they both have the same constructor as the super but they have a toString method that is almost the same but … | |
i hava a code called home.java [CODE] import javax.swing.*; import javax.swing.JScrollPane; import javax.swing.JTextArea; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.Random; import java.util.*; import java.text.*; class home extends JFrame implements ActionListener, Runnable { JButton btndetect,btntest,btnstart,btnexit,btntransfer; ImageIcon ic,ic1,bc; JLabel lbltitle; JTextArea textArea ; JScrollPane scrollPane; JPanel panel; Thread t; public home() … | |
I've searched the page but i can't find a way to mark my previous post as closed. This is slightly different so i was not sure if i should create a new post or add to my existing one. Not trying to break any rules intentionally. in this post i've … | |
Hey guys, im pretty new to java as this is my first time ever taking such a course, and i have an assignment that i have to complete that im stuck on and i have no idea what to do next. Heres what i have so far, and i doubt … | |
I have built a program that will select 5 random cards and display the output as text. I want to add an image to display. In my code i've declared each of the card images, but I'm not quite sure how to tie in the graphic to the output. if … | |
I am having trouble creating the code to end the program if the user enters -99. I have everything else done. The int "testNum" is what holds the value for -99. Can someone point me in the right direction on how to make it where when the user enters -99 … | |
Hi, I need help with this program here. I want to print an isosceles triangle. But, I keep ending up with this here where they are being spaced: --------* -------* * ------* * * -----* * * * ----* * * * * ---* * * * * * --* … | |
Hi, i want to develop an instant messenger using a P2P architecture.. please help me out with the initial steps | |
Hello, i have a question. How do you compare 2 words or integers? the idea is a program should prompt the user to enter 2 words in one sentence (so like "apple orange") then it reads the 2 words and compares them to see if they are the same or … | |
// close an account with a given number public void closeAccount(int id) { } this is a bank project... a customer account is created(array). i would like to know how to delete an array? let say: account number 185649 is found in array[15]. then i would like to delete this … | |
[url]http://www.jformdesigner.com/doc/help/layouts/gridbaglayout.html[/url] Please visit this website, there is a image of a dialogue box , can anyone help me please making them. I dont want full code just some hints . Thank You. | |
hi could anyone suggest a good tutorial about spring security? regards | |
hi people does anyone know how to change the backcolor on a Jtextfield, when the component gets the focus? thanks | |
I'm a beginner, and I was wondering how to write a java code for this: * *** ***** ******* ***** *** * I'm using DrJava. This is supposed to be in a diamond formation. Hopefully it posts that way. Thank you :) | |
I have problem compile this. Line 23 having a problem ( possible loss precision, required int, found double). [CODE] public void actionPerformed( ActionEvent e ) { try { // call a function to get the value - if an error occurs, // display a message box and set focus to … | |
Hello to all, Despite I added all necessary .jar files to project, I always take boring exception warnings that say "class not found". I added the code and exception output below. I'll be so happy if someone can help me. Thanx in advance.. With regards, T ----------------------------------------------------- [CODE]protected void doGet(HttpServletRequest … | |
Hi can someone help me. I sent this question in another forum, but noone is helping. This is the link please hlep! http://www.dreamincode.net/forums/showtopic158550.htm | |
my college project is finished now i want to shine it with different look and feel. I am developed the application on windows platform can i am able to apply quaqua loook and feel to it. if yes then plz give it to me in simple step by step manner. … | |
Hi everyone, I'm having a problem with understanding the workings of an enhanced For loop. This code is meant to iterate through an array of ints and print out the char value of that int. But it seems to start on the first number in the array, making the program … | |
Hi, what I am trying to do is simple: I just want to execute something depend on what the user presses. Here's the pseudocode: [CODE]if(user presses 1) { do this } else { do that }[/CODE] ps. I was reading about [CODE]java.awt.AWTKeyStroke;[/CODE] and is that what I need to use? … | |
Hi guys, I have a problem with arranging my components in a GridBagLayout. The frame is 600x600. Inside it, there are two pairs of (Label,TextField). They are not where I want them to be. What I would like is to have them all at the top of the frame, one … | |
Please can anyone tell me if it is possible to write a program that allow multi client interaction with a server. I am new to Java so any help will be appreciated. Thanks | |
Hello I am really new to Java/Oracle. I am having NetBean 6.8 IDE for development. jdk1.6.0_17 Where do I start? THANKS advance!!!!! | |
Here a simple code which I have to add on project: [code] import java.io.*; import java.util.Scanner; public class Ana { static public void main(String[] args) { try{ File gecicidosya=new File("D:\\B.txt"); File sdosya=new File("D:\\A.txt"); Scanner oku = new Scanner(sdosya); BufferedWriter yaz=new BufferedWriter(new FileWriter(gecicidosya)); while(oku.hasNextInt()) { System.out.println("while started"); oku.nextInt(); System.out.println("file readed"); } … | |
what is the difference between javaSE and javaEE? regards |
The End.