35,618 Topics
![]() | |
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] … | |
Hello, I was wondering why do we need to assign value of -1 to the top of the stack? topOfStack = -1; Thank you | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
What is the difference between s/mime ,tsp and pgp? Reference :encoding type in Bouncy Castle.org , jar download | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
[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: | |
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 … | |
hei, how do you create a javadoc in lates netbeans version.. -V | |
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 … | |
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; … | |
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 … | |
Hello, Where to download jade.core and jade.wrapper packages??? Thankyou | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … |
The End.