32,204 Topics
| |
Good morning all. I'm having some difficulty in reading from a sequential file. I think I have my code set up properly, but when ran, it throws an exception which show me the error statement I specified. When I ran a debug, it does seem to be pulling the information … | |
I have written this program but for some reason it isn't appending to the file? import java.io.*; public class numbers { public static void main(String[] args) throws IOException { FileWriter grades = new FileWriter(new File("grades.txt")); String temp = ""; for (int i=0; i<=100; i+=2) { temp = String.valueOf(i); grades.write(temp); grades.write(","); … | |
Hi: I just wanted to see the capabilities of java. Can you please post your favorite project (that you've made). If you want, please also post the source code. Thanx, C++ | |
Below is my LinkedList class and also a private Node class inside it, I also write a unit test method to test if every method in LinkedList work, but the hasNext() and Next() ultimately failed. Please let me know what is wrong with the next() and hasNext() method. Here is … | |
How to implement following C++ program into Java using the file system.. Please help me. please send the java code on <EMAIL SNUPPED> thanking you. [CODE] /*Header Files*/ #include <stdio.h> #include <conio.h> #include "bcio2.h" #include <math.h> #include <stdlib.h> #include <string.h> #include <time.h> /*Function Prototype*/ void sleep(void); void sleep( int nbr_seconds … | |
[CODE]/** * @(#)aboutUs.java * * * @author * @version 1.00 2010/10/7 */ import javax.swing.*; import java.awt.*; public class aboutUs extends JFrame{ private desPanel des=new desPanel(); public static void main(String args[]){ aboutUs frame=new aboutUs(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } public aboutUs() { desPanel.setTitle("About us"); String desc="This Choose Your Flavor is a shop that … | |
Hi all, Can any one say how to execute the below programs .I need some packages to run the programs .Kindly specify the packages and their links. URL: [url]http://code.google.com/appengine/docs/java/xmpp/overview.html#Sending_Instant_Messages[/url] Thank you, With Regards, Premnath.M | |
Hello Members, I have a JFrame, which creates a JDialog upon clicking. In the JDialog, I have a JCombobox. When I choose one of the options in the JCombobox, I should be able to change the background color of the JFrame randomly in an open ended loop. When I then … | |
Hello Members, Is it possible to write a Client/Server program between two PCs in a LAN? If yes, besides the IP address of the two PCs, what other information would I need? Thank you!! | |
I'm trying to do a q & a program which will read a question, 4 choices. Then read the answer and compare it to the correct answer. Then increments the player score, My problem is, I always get null when I run the program. Could you please help me determine … | |
i have a problem i.e i want to add new line after the second text field; let say i have made one text field and for the second text field i want that it will come in the next row, now how i displayed it in the second row?? thnx | |
Hi guys! I have a JTable updated from MySQL. I can successfully insert a row in JTable using SQL statement "insert into...". However, when I execute a delete statement, then JTable is not updated. Please, help me to find an error. [CODE] public void actionPerformed(java.awt.event.ActionEvent evt) { SystClasses.FilterClass.tableModel.initDB("85.254.219.164", "employee_record", "liana", … | |
please am writing my final year project on design and implementation of an xml database. pls i need any help i get. thanks. | |
Please help me use this LookAndFeel in java. I have downloaded quauqa-5.4.1.zip I tried the following, but it's giving me exception in thread:- package ch.randelshofer.quaqua; class Account extends JFrame { @SuppressWarnings("unchecked") public static void main (String [] fisd) { Account acc=new Account(); acc.setVisible(true); acc.setSize(900,600); java.awt.EventQueue.invokeLater(new Runnable() { public void run() … | |
| Hey :D I'm currently writing a software where users pick out seatings from auditoriums. The tables will contain seating statuses of auditoriums, which could update quickly. I was thinking of using a thread to repaint the contents, however as the software could be used by many users on the same … |
Heloo; when i drag the window; then how i stop changing the size of textfield and buttons, and how i fixed the size of window.i shall be very thankful to all of you kindly give me the answer... | |
hi , this is Poornima i am a trainee in java i want many questions for banking problems in java to get trained where can i get that plz help me else plz send some questions | |
i m bulding my first project as airport reservation..i want to know how do i link my project with any database... | |
i want design application for ticket booking so please help from initial step | |
Excuse me, is I am new to Java and want to do an attribute (final)and static. The problem is that first I need to instantiate and then, using a method to give its final value. I need something this: [CODE] public static final int MyConstant; public void createConstant(int pValue){ MyConstant … | |
I'm new to java programming language and i'm wondering what are the data sources that I can interact with. | |
hi i am jakir , i want to do web application in java so plz suggets some project topic topic must be different bye. | |
I'm want to learn java. What software could I use to work with java as it's obviously not available in microsoft visual studio. | |
Hello! Can someone please suggest a way to effectively copy the bytes from one array to another. In my program a user will call the method setDate(byte[] buf) which will set data continuously ie inside the method there is an array say buf2. for example if the method is called … | |
hey guys, thanks for looking at this. I'm new to java and need help with this one problem. What i need to do is, 3) Write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a … | |
How do I properly bubble sort through a text file by assigning the values to an array. In the code below I tried to assign the values from the text file to a string while there is still something to fetch. Then I used a for loop to assign the … | |
The class Newfile has a red zig zaggy line underneath it, The type Newfile must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent). What does this mean? My code ^_^' : [CODE]import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JButton; import javax.swing.JMenu; import javax.swing.*; import java.util.*; public class tuna … | |
Uh, I don't think I'm on the right lines but is there a way to connect to the internet and send some variables to a database? | |
Hi all, Having issues with my guessing game I made. For once its not a compiling error. For some reason my loop only executes once, and it wont re-execute when the wrong number is entered. Hoping someone can help me. Here is my code: [CODE]import javax.swing.*; public class Guessing Game … | |
Hi - Im making a small and relatively simple game that use's the common feature of the scoreboard to keep track of the user's score. I have declared the main game frame in one class, the actual game on one panel in another and have decided to keep the scoreboard … |
The End.