32,199 Topics
| |
I was hoping someone could give me the code to read and then to system print out the words in the text file. The textfile contains: One, Two, Three, I'm new to IO readers so this would help alot as I'm having trouble reprinting the information out. | |
Hey guys, what are advantages of external and internal iterators? I understand that internal allows you to add and remove nodes as it has implicit reference to data in the outer class? So, why would we need an external iterator? What are pros and cons of both? | |
Is there anybody could tell me what does this function use for?For example : [CODE] String strTemp = JOptionPane.showInputDialog(null,"Please Enter C To Open A Current Account \n Or J To Open A Joint Account"); switch(strTemp.charAt(0)){ case 'c': case 'C': //code statement break; case 'j': case 'J': } [/CODE] Basically if … | |
Hello... I am doing a project related to developing a system health monitoring tool for systems in the network in java platform. I need a few suggestions on how i can proceed in this project. Following are a few doubts i have in mind.. [B]1. Is it possible to access … | |
I just made a program using JOGL and one problem I'm having is that if I don't include the arguments -Dsun.java2d.noddraw=true and -Dsun.awt.noerasebackground=true then the screen flashes and sometimes just stops refreshing until I jiggle it a little If I include these arguments everything is perfect but my intention is … | |
Hello all, i was just introduced to objects and am trying to construct a program using get/set. i just want to set the user read variable and read it back. I have it almost figured out but for some reason it will not display anything for the value. heres what … | |
Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:113) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j ava:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) [CODE]import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.FlowLayout; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.Image; import java.awt.Toolkit; import java.awt.Dimension; import java.net.URL; class Inventory { String number; // item number String name; // item name int … | |
For some reason this method prints out an extra integer at the bottom. For example: It is supposed to only print out 4 x4. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Any idea how to remove the extra character? [ICODE] … | |
Hello. This is my first post! I'm having some difficulty with this code. I have a light-bulb which is attached to a powerplug. When the mouse clicks the power plug, the light-bulb turns on, and turns off when clicked again using mouse events. Now I want to create more light-bulbs, … | |
Hey all, I'm doing my final year in collage and have come up with an idea of using rfid readers and chips to track peoples movement within a defined zone. I've been told that i will be using JBoss but that hasn't been nailed down yet. What i need help … | |
There is a java based chat client called as SparkCLIENT which is widely used as a messenger.THE SERVER WHICH SUPPORTS THIS CLIENT IS OPENFIRE SERVER.The technology involved in the communication of messages between the client and the server is xmpp protocol.This is the technology being used in GTALK client. The … | |
i have an assignment a bout TicTacToe game i need its code in java language its functions are draw_board play_turn set_square check_end check_line please i need it now | |
hi, I need to use JMock to perform the unit testing of the application. The main purpose is to apply JMock in my unit testing. For that I need to create mock objects. Let me know if you have any suggestions with respect to the error:"expected method was not invoked … | |
I have my code and it compiles, and makes sense to me, but I must have something wrong because it only puts out 0's on everything except 1. There is something I am missing, and I don't see it yet. [CODE]import java.util.Scanner; public class MyBestFreon { static int max; static … | |
I just have to increment values from 0 to 23 using <c:foreach> tag in select box. This is the code snippet <html:select property="schStartTimeHH" styleClass="tableDataTextStyle1"> <c:forEach var="i" begin="0" end="23"> <html:option value ="<c:out value="${i}"/>"><c:out value="${i}"/></html:option> </c:forEach> </html:select> the value of the option tag is hitting an error. Can any one suggest the … | |
Hi I have created a simple struts application for which I am supposed to handle multiple sessions. The application works very well. But the problem is, the session attributes get swapped when multiple users access it. For example, UserA logs in, username of UserB is shown on Header. UserB wants … | |
trying to make a program(game) for two players. the game has an interface and three text fields "player1","player2", and "winning amount". the interface also has a button called rand which when pressed generates random numbers from 1 to 10 and assigns them to a particular field. assuming that the first … | |
Is there a way to tack a variable onto the end of a print.drawString so it would show up like Text: <variable> Or: [CODE]page.drawString ("Text: " object1, x, y);[/CODE] Where object1 is the variable. I tried doing that, but i get an error ")" Expected on that line, i suspect … | |
I need to add a message to a picture and i have no clue of whats wrong with my code. i will post my code public class Lab6bthoma21 { public static void SimplePicture (String[] args) { System.out.println("Begin Java Execution"); System.out.println(""); //Java Program //Prompt user for a picture and open that … | |
In a programming class I have to answer some questions about various languages. One of the questions is What are the primary abstractions supported by the Java language? While I understand what an abstract is, I am not sure how to answer this question. The answer is supposed to be … | |
Hi all, I wondering how to get started with this. I am working on a method that will take two ints. These ints represent positions in an arraylist of characters. I am trying to determine if the elements of the two positions are equal. If, so display the elements, if … | |
Hi, Would anyone help me out the problem with layout components in java. I have 3 tabs, and first tab1 I have setted up with panel 1, tap2 with panel 2, but I couldn't set up component for panel 2 such as: Active panel problem display number display textarea textarea … | |
Ok so i am trying to redo my inventory program but the problem is that it won't run because i don't have a main method. Every time i try to put a main method in I get an error. Is there something wrong with my code thats keeping me from … | |
I am getting an error that says "The type Chapter165 must implement the inherited abstract method ActionListener.actionPerformed(Action Event). Can someone help me with where I went wrong? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class Chapter165 extends JFrame implements ActionListener { private JTextField inputMile = new JTextField(10); private JTextField outputKm … | |
I have to create my own FTP Client in Java. Can anybody help me in the following. Which and all libraries or packages should I use. Which and all documents/tutorials I have to read Thanks in advance. | |
i want the code for avl trees using dictionaries in java... with total insert , delete, display options | |
hello smile.gif i am having trouble with the 2D array i am making.......it is supposed to be an address book of sorts Miller, Joseph, 910 Auburn Avenue, McLean, VA, 7035551234 Frank, Michael, 1 York Road, Baltimore, MD, 4105551234 Roland, Frank, 346 Bellona Avenue, Lutherville, MD, 4435551234 Smith, Jan, 432 Burke … | |
I'm writing a collision algorithm based on the Separating Axis Theorem that works like so for each side: - Gets the separating axis of the side - Measures the object's width on that axis and places the width on the axis. - Measures/places width for object that is being collision-tested. … | |
Seriously, what is any programming language without a HelloWorld app? | |
So I have a lot of code so I guess I'll just post the couple classes that seem to be giving me problems and where the problem is occuring. [CODE=java]// line class to store lines from .ps file class line { // for outcodes private int RIGHT = 2; private … |
The End.