35,618 Topics

Member Avatar for
Member Avatar for grisha83

Hello, For some reason, my program prints out extra zero from my linked list Can anyone tell me why? Thank you [ICODE]public class Main { public static void main(String[] args) { IntNode my = new IntNode(5,null); LinkedList list = new LinkedList(); list.createList(0); list.addValue(1); list.addValue(23); list.addValue(3); list.addValue(4); list.print(); list.getLength(); } }[/ICODE] …

Member Avatar for grisha83
0
91
Member Avatar for grisha83

Hello, I was wondering why do we need to assign value of -1 to the top of the stack? topOfStack = -1; Thank you

Member Avatar for grisha83
0
103
Member Avatar for username7260

Ok, i got this so far ... [code] import java.util.regex.Matcher; import java.util.regex.Pattern; public class Testing2 { public static void main(String[] args) { Pattern p = Pattern.compile("[wati]"); String text = "water"; Matcher m = p.matcher(text); if (m.find()) { System.out.print("Found !"); } } } [/code] With that code i got a match, …

Member Avatar for masijade
0
132
Member Avatar for DeathWalker101

Hey all, Im working with assembly atm and thought i might just get a better idea understanding loops if i know how java loops work not that it is really the same im just trying to back track. Im trying todo the following: When var1 = 3 It then needs …

Member Avatar for tux4life
0
83
Member Avatar for airey1988

Hi i have created a list which reads from a text file. how can i view the contennts of the list outside of the method it was created. I have inserted my code below. [ICODE]//read Customers.txt and save in an object. List<Customer2> list = new ArrayList<Customer2>(); File file = new …

Member Avatar for giri.pankaj
0
81
Member Avatar for vedmack

Hi ... i found a way to add watermark in java to the following images format: PNG , JPG , GIF... (like this: [url]http://blog.codebeach.com/2008/02/watermarking-images-in-java-servlet.html[/url]) Now im looking for a way to do the same with BMP and TIF... (cause this way doesn't work on that format...) Anyone know how to …

Member Avatar for peter_budo
0
182
Member Avatar for ronnexngh

Im trying to program a Caeser cipher that will upload a file from documents and enrypt/decrypt it. i do not know how to implement one main class containing all that and different methods in one class. i have different separate classes. can anyone pls put them together as one main …

0
54
Member Avatar for onsir

I have design report with ireport, if that report i run in netbeans its ok, but while i move to drive c: got error like this "error displaying report page. see the console for details" if i try in command prompt get message [code] java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown …

0
103
Member Avatar for adrian_hs

Hello, unfortunately i'm a newbie to java servlets, still i want to learn something new and powerful (for now i'm a PHP developer ;) ). So i have installed Tomcat 6 and Netbeans on my Windows XP. I want to do something for whidh i need some clesses tahat aren't …

Member Avatar for adrian_hs
0
268
Member Avatar for AS_82

What is the difference between s/mime ,tsp and pgp? Reference :encoding type in Bouncy Castle.org , jar download

0
67
Member Avatar for drawer1001

I am facing a problem here. I want move a trianngle shape and a reatangle shape using only one slider. I have created the two shapes And each of this shape is selected what i click the corrosponding button. two buttons are used to select two shapes Can any onw …

0
36
Member Avatar for suretd

Good Day All, I have another question: I have done this program to sort a list of artist and their biggest hits, etc. It has 4 parallel arrays that i have to sort alphabetically using the Sort Option in the menu bar. I am using Bubble sort, to sort the …

Member Avatar for VernonDozier
0
149
Member Avatar for blur0224

I'm trying to develop a simple program that automatically downloads PDF files from a web server and organizes them into Files. When I download any .pdf file, the size is roughly 30% bigger than when I download it with a browser and it pdf opens, but does not display. So …

Member Avatar for blur0224
0
215
Member Avatar for osirion666

int test = numbers.length; if (numbers[i] = test) { } i want to find the last array in numbers then do something with it for example out put it the above code is my attepmtp at it however i am doingd something wrong and cant for the life of me …

Member Avatar for peter_budo
0
97
Member Avatar for onlinegear

hi there i am trying to creat a subtotal for each row i have created and for each item in the combo box i dont know how to do this can some help plz [CODE] /* * To change this template, choose Tools | Templates * and open the template …

Member Avatar for peace_of_mind
0
114
Member Avatar for alias120

I am having a lot of trouble getting this program to work properly. No compilation errors, but this is the output i get when i compile; init: deps-jar: Compiling 1 source file to /home/alias120/NetBeansProjects/createFile/build/classes compile: run: Checking to see if file already exists... true You produced the following file contents: …

Member Avatar for alias120
0
80
Member Avatar for rosiecomsoft

[B]IN JAVA!!![/B] what is this "noclassdeffounderror"??? i m getting this error at run time what should i do? while searching on Google i found this "public NoClassDefFoundError(String s) Constructs a NoClassDefFoundError with the specified detail message. [B]Parameters[/B]: s - the detail message." :confused:

Member Avatar for Ezzaral
0
81
Member Avatar for joker21

The program must allow the user to create a login by using Dr.Java GUI. After he creates a log in it will ask the user would he like to by an Xbox360 game or a PC game. After the user clicks the box it opens a selection of 10 different …

Member Avatar for Ezzaral
0
244
Member Avatar for v-n
Member Avatar for mmmusa

Hello everyone can someone please help me on my TMA..........i'm having problems in the following Q's....please provide me the codes SNIP I WILL BE REALLY THANKFUL TO YOU:pretty: C) - Translate the following scenario to a Java Program: [10 M] We assume that an array a of size n and …

Member Avatar for javaAddict
0
218
Member Avatar for airey1988

Hi, i am a newbie at this and i am having problems with the following errors. U:\year 3\AssignmentFinal\Customer2.java:29: non-static method setName(java.lang.String) cannot be referenced from a static context i have inserted my code below any help would be greatly appreciated. [ICODE] // customer class import java.io.BufferedReader; import java.io.File; import java.io.FileReader; …

Member Avatar for birina
-1
1K
Member Avatar for gitech

Hai Friends, i want read the string from server and to write in bytes to openOutputStream. Example : byte bytestr[]={0x1D,0x28,0x4C,0x87,0x02,0x30,0x43}; StreamConnection con =(StreamConnection)Connector.open(serverConnectionString); os = con.openOutputStream(); os.write(bytestr); i want to read bytestr from server as string using httpconnection, and to convert to byte array,how can i implement this. please help …

Member Avatar for peter_budo
0
142
Member Avatar for bharanidharanit

Hello, Where to download jade.core and jade.wrapper packages??? Thankyou

0
71
Member Avatar for Zibo

Hello. I've got simple JFrame and into that I put JPanel (object of subclass of JPanel class). I want to check, what's this panel's size from inside of this panel class, but every method (getSize, getBounds) returns [0,0]. If I call getSize method from JFrame class, then it's fine, but …

Member Avatar for Zibo
0
190
Member Avatar for llemes4011

Hi, I was wondering it was possible to write a program that runs from the System Tray in Windows XP. For example, AVG runs all the time, but is on the System trey, so you don't worry about it until you need it. I was wondering if it's possible to …

Member Avatar for JamesCherrill
0
93
Member Avatar for MrMackey

Hi everyone, Here I will keep you updated on my first java project that I do, excepting the school projects. The main Idea is to make a new window where calculations are done by [B]multiple inputs and outputs[/B]. At school I already learned to make windows, fields and buttons, but …

Member Avatar for verruckt24
0
86
Member Avatar for Lib Auth

Hello there, I have this script which I have edited and altered, to create a demo of what I want (the original coming from Dynamic Drive). Is there a way to achieve this in CSS? Thank you, Regards, Grant

Member Avatar for Airshow
0
101
Member Avatar for jaiprakash15

Dear Friends, am working on a project where i have to convert the HTML file to a PDF file. am using tidy and fop methods for converting. am not good at XSL style sheet. when i try to run the program by giving the input file (39.html) to ma program …

0
93
Member Avatar for add4

How can i check if the ObjectOutputStream has unread object wriiten to the stream? When i'm runnig my program which has server and client (the client sends the screen shot and the server displays it) in the client side i got an error(java.lang.OutOfMemoryError: Java heap space), any one can help …

Member Avatar for JamesCherrill
0
102
Member Avatar for kanodi

Hi guys, wonder if you could help me with a problem I am having. I am working on a app that parses an XML file, and when executed from my IDE(Netbeans) all works flawlessly, however when I deploy and execute my app via Webstart I get a NullPointerException on the …

Member Avatar for kanodi
0
216

The End.