32,199 Topics

Member Avatar for
Member Avatar for Mcdermid

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.

Member Avatar for Jocamps
0
81
Member Avatar for alkeshtech

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?

Member Avatar for JamesCherrill
0
119
Member Avatar for low1988

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 …

Member Avatar for low1988
0
704
Member Avatar for urstez

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 …

0
153
Member Avatar for OffbeatPatriot

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 …

Member Avatar for OffbeatPatriot
0
90
Member Avatar for shroomiin

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 …

Member Avatar for javaAddict
0
122
Member Avatar for keekee

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 …

Member Avatar for masijade
0
187
Member Avatar for KimJack

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] …

Member Avatar for quuba
0
114
Member Avatar for VirtueAL

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, …

Member Avatar for quuba
0
98
Member Avatar for toomuchfreetime

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 …

Member Avatar for toomuchfreetime
0
186
Member Avatar for kartheepanmirra

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 …

-2
72
Member Avatar for raneen

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

Member Avatar for ejosiah
-3
232
Member Avatar for ppeter

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 …

-1
47
Member Avatar for why1991

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 …

Member Avatar for VernonDozier
0
172
Member Avatar for rp_prasanna

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 …

Member Avatar for Thirusha
0
1K
Member Avatar for adityam4444

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 …

Member Avatar for nomemory
-1
80
Member Avatar for saintb

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 …

Member Avatar for ithelp
0
505
Member Avatar for Superfat

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 …

Member Avatar for tonyjaa
0
101
Member Avatar for king_dion

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 …

Member Avatar for BestJewSinceJC
0
160
Member Avatar for paldss

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 …

Member Avatar for kvprajapati
0
89
Member Avatar for KimJack

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 …

Member Avatar for masijade
0
152
Member Avatar for thdinh2009

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 …

Member Avatar for BestJewSinceJC
0
25
Member Avatar for armyofone83

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 …

Member Avatar for BestJewSinceJC
0
139
Member Avatar for george21

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 …

Member Avatar for BestJewSinceJC
0
3K
Member Avatar for sbhavan

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.

Member Avatar for iamthwee
0
88
Member Avatar for bharath1

i want the code for avl trees using dictionaries in java... with total insert , delete, display options

Member Avatar for javaAddict
-2
89
Member Avatar for Zero-Method

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 …

Member Avatar for JamesCherrill
0
72
Member Avatar for Cheesy74

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. …

Member Avatar for VernonDozier
0
356
Member Avatar for mmiikkee12
Member Avatar for javaAddict
1
153
Member Avatar for gotm

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 …

Member Avatar for javaAddict
0
170

The End.