32,199 Topics

Member Avatar for
Member Avatar for randomFIRE

I am getting this error Exception in thread "main" java.lang.NoClassDefFoundError: TestApp (wrong name: Test/TestApp) which I have googled and tried suggestions, but it doesn't fix it. I have tried unsetting my CLASSPATH etc. and it doesn't work. The file TestApp.class IS in the directory that I am running the program …

Member Avatar for randomFIRE
0
319
Member Avatar for RabbitruN

Hi, I need some enlightenment with copying arrays in JAVA from some of ya seasoned lots. I have this 2d array , twoDarray[10][6] and another 1d array oneDarray[1,2,3,4,5,6]. I'd like to copy the 1d array into the 4th row of the 2d array.Suggestion please. Thnx in advance.

Member Avatar for RabbitruN
0
319
Member Avatar for awo

Is there any class in java or a package that one can use to manage IP configuration. I mean i was planing to develop a cafe timing application that allows people to bring in there computer system and it will not allow the client system to browse when their time …

Member Avatar for ~s.o.s~
0
334
Member Avatar for thilinam

I would like to self study java programming. What would I do to successful my learnig give me an advise

Member Avatar for jbennet
0
145
Member Avatar for raija09

public class solve{ public static void main (String []args){ A cs = new A(); int first=34; int second=4; System.out.println("Sum:" + cs.add(first,second)); System.out.println("Difference:" + cs.subtract(first,second)); } } i got this code, unfortunately it refuses to run.. please help.. Something is wrong with "A", dnt know what it is...:(

Member Avatar for stephen84s
0
154
Member Avatar for sivak

i have one text box date of birth and submit button ..if i click that submit button the calender should open ...if we selevt any one of the date on that calender the date should display in dataof birth text box.. can anyone tell me the javascript code for this …

Member Avatar for sivak
0
78
Member Avatar for k2k

Member is class consisted of member informaiton such as firstname, lastname, phone etc. would anyone please point out what this function gave me NullPointerException runtime error? I think I initialized everything. thanks [code] public static void read(Member box[], int count) { Scanner reader = null; try { reader = new …

Member Avatar for ~s.o.s~
0
69
Member Avatar for marcmm

ok, I have a form that submits data to a database. data that is colected from things like dropdown boxes, textboxes, checkboxes etc. I want to put some conditions that prevent the user from submitting something that is missing important data. I found a little tutorial that dose that, but …

Member Avatar for manish.s
0
178
Member Avatar for deven1974

Implement the insert, remove, and search methods of the BinarySearchTree class. Included are the Main, Tree, and TreeException classes. Do not make changes to those classes. Your tree should work with them as shown. All operations should be implemented recursively. Additional methods may be needed. [CODE] /* * Tree.java * …

Member Avatar for quuba
0
214
Member Avatar for Boyet728

I am very new to programming and I have an assignment, but I am not asking for the solution. I just want to understand what is being asked. Our instructor presented two codes using a break and continue statement. He stated that both methods are bad programming practices. Which I …

Member Avatar for ~s.o.s~
0
129
Member Avatar for kaushalya_uom

I'm going to make a small spreadsheet using java. I thought to use jTable as the spreadsheet. How can I display the output when a function like 'sum' included in a cell?

Member Avatar for Ezzaral
0
44
Member Avatar for TheWhite

This is actually part of a much bigger program, but I cut it down to the problematic area to make it easier to read. [code=java] import javax.swing.JButton; public class test{ static GameButton[] grid; static class GameButton extends JButton{ int value = 0; } public static void main(String[] args){ grid = …

Member Avatar for BestJewSinceJC
0
95
Member Avatar for javafrustrated

The program is intended to read a file with a few lines of strings to determine whether or not they are palindromes. I'm getting an error while compiling - tagged where the error shows up. I'm not sure whether or not it is going to read the lines correctly from …

Member Avatar for BestJewSinceJC
0
158
Member Avatar for americaneagl

For this one I have to do the while and do-while plus the for loop. I have this bank/atm style program so the goal is to put the teller into a loop so that the user can deposit, withdraw, check the balance as long as they need to, and entering …

Member Avatar for BestJewSinceJC
0
101
Member Avatar for roadToNowhere

Hey guys, would like to thank everyne for help on previous post. the following code is meant to populate a hashmap and hash set respectivly, but when i run my programme its giving me a null pointer in my user interface, could anyone help guide me? [code] package concordanceReader; import …

Member Avatar for Antenka
0
99
Member Avatar for bachma7

hi every body! is there anyone know how to play an incompleted music file when it 's be downloading by a java program? please help me. thanks a lot.

0
39
Member Avatar for Ninad16
Member Avatar for ~s.o.s~
0
196
Member Avatar for drjay1627

I small maze game and I got a key Listener. I got it to work. The problem I have is that i have a text box in the gui and Key Listener is added on to the that. but I want to set it so that when the window is …

Member Avatar for Ezzaral
0
130
Member Avatar for drjay1627

I made a maze game. When you click the button, a navigator is created. But before you create a navigator, if you try moving the navigator, there is a null pointer exception. since the navigator can be moved by pressing keys on the keyboard, I want an error message to …

Member Avatar for drjay1627
0
83
Member Avatar for rofio

[CODE]package corpus; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.HashMap; import java.util.Map; import java.util.HashSet; import java.util.Set; import java.util.Collection; import java.util.TreeSet; public class FileReader { private static final String[] FILES ={"a_christmas_carol_capter1.txt", "a_christmas_carol_chapter4.txt", "emma_chapter1.txt", "emma_chapter2.txt", "pride_and_prejudice_chapter3.txt",}; private Map<String, Set<String>> corpusCV; public FileReader(String textFile) throws FileNotFoundException { Set<String> texts = new HashSet<String>(); corpusCV …

Member Avatar for rofio
0
155
Member Avatar for alan72

Does anyone have any code or links that shows how to interact with Web Pages with VB6? I'm trying to find button/image files (.gif, .jpeg) within the HTML and have VB send a command to press that button with code. I read a lot about Web Browser Control, but can't …

0
54
Member Avatar for dnmoore

have to creat a geosolid class that has 3 sub class i choose sphere cylinder and cone, i got the first two to work but my cone class works except when it calculates the volume it keep getting 0 no matter what number is use for the hieght and radius …

Member Avatar for quuba
0
178
Member Avatar for andrepezzo

Hi..my aim is to serialize/deserialize my "SoapPair" class , that contains Axis MessageContext obj (SoapPair receives this from its constructor), not serializable object(when trying to normally serialize , it returns "axis MessageContext not serializable").. How do I serialize/deser the SoapPair class? Do I have to use SerializationContext/Deser context? How? Thanks …

Member Avatar for ~s.o.s~
0
160
Member Avatar for lepetitevoddy

I have this wierd kink in this program, it keeps telling me that there is a "missing return statement for public static question. i'm kind of new to JAVA and i've tried everything! please can someone help! import javax.swing.JOptionPane; public class arithmetic { public static void main(String[] args) { JOptionPane.showMessageDialog(null, …

Member Avatar for ~s.o.s~
0
240
Member Avatar for roadToNowhere

right, so ive got this problem, basically, ive got a bunch of text files and i want to use the scanner to go through every single file, and seperate every single word from all the text files, i tried everythnig, and ive scoured this forum my code looks like this: …

Member Avatar for roadToNowhere
0
104
Member Avatar for javafrustrated

I have a program that allows a user to input an integer value into an applet (the number entered determines the size of a list). From the value entered the program determines how many comparisons are required to sort the list using the size inputted. The applet is working but …

Member Avatar for javafrustrated
0
349
Member Avatar for begueradj

Hello ; I would love to know if JavaMail API is enabled to secure its messages and if it implements any seuciry policy such as encryption or anything else Thank you very much for your answer from : <snip email>

Member Avatar for stultuske
0
42
Member Avatar for newbie086161

Im creating a program that will show a family tree. I did my flowchart, but im stuck on the type of outline i should try to make the pseudocode. Any suggestions?

Member Avatar for stultuske
0
36
Member Avatar for oldSoftDev

Hi guys, I am a student who is just going to start Java I use to work on python and I heard that java is some what similar to python. couple of days a go I posted a code that was not compiling because i did not the environment variable …

Member Avatar for javaAddict
0
82
Member Avatar for realahmed8

I need little help in adding Sin & Cos functions to my calculater , and also in Layout (need textfield to be on the top), so please help me if you can.. that's my code: package javaapplication3; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.*; //import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Member Avatar for javaAddict
0
249

The End.