4,084 Posted Topics

Member Avatar for abhaydiwan

[QUOTE=abhaydiwan;735394]I have an idea that I need to have a code for file reading and file writing with a code for quicksorting the string , but m unabkle to connect the whole.Please help me in that. File REad COde: import java.io.*; public class FileRead { public static void main(String args[]) …

Member Avatar for wimper
0
130
Member Avatar for BestJewSinceJC

[QUOTE=BestJewSinceJC;735321]This means no use of any java library methods or classes. [/QUOTE] unless you think it is possible to do this without using any Java classes within Java itself, you might want to check this on another forum

Member Avatar for BestJewSinceJC
0
91
Member Avatar for jorgeflorencio

[QUOTE=jorgeflorencio;734606]Thank you in advance...[/QUOTE] what exactly are you thanking us for... because you got the option to quote someone? well, you did that all on your own, I guess, well done. if you want several people to be able to help you, mailing your stuff to one person won't really …

Member Avatar for jorgeflorencio
0
144
Member Avatar for kdhanshree

[QUOTE=kdhanshree;735998]There are two dates (e.g. 11/11/2008 and 20/11/2008). Then how can we calculate the number of days betweeen thess two days in java.[/QUOTE] by comparing them, I suppose. what have you tried so far?

Member Avatar for Ezzaral
0
235
Member Avatar for kdhanshree

[QUOTE=kdhanshree;735662]I add integer values in combo box.When I call getSselectedItem it return object.How i convert it into integer.[/QUOTE] casting it to an Integer. but from your question I take it you want an int, and not an Integer. so, cast it to a String, and parse that to an int. …

Member Avatar for Ezzaral
0
119
Member Avatar for janamrob

you're trying to print the entire array, you should use a loop to run through each and every element of it, and print the elements. for instance: [Code=Java] ArrayList movieGoers = ..//you already have this String persons = ""; for ( int i = 0; i < movieGoers.size(); i++){ if …

Member Avatar for stultuske
0
214
Member Avatar for stevom

Excercise: Excercise outline - your work Excercise goal - convince us to help you End-expectations - working code 1. start coding 2. see where you have errors you can't solve yourself 3. paste relevant code and error messages here 4. ask specific questions 5. stop expecting we will read all …

Member Avatar for stultuske
-1
116
Member Avatar for mrjoli021

[QUOTE=jasimp;735365]Try going through the [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html"]Scanner[/URL] class. That should be sufficient for your purpose.[/QUOTE] or read the entire line as a String and use substring and parsing to int's

Member Avatar for stultuske
0
88
Member Avatar for ashishforu.aec

Stultuske hands you [QUOTE=ashishforu.aec;735325]a project on inventory control management using java... [/QUOTE] there you go, you old chap. happy I could be of some service

Member Avatar for stultuske
0
43
Member Avatar for jonjon1456

[QUOTE=jonjon1456;735278] I don't really know how many exceptions i need[/QUOTE] if you want to have a minimum, just put everything in one HUUUGE try-catch block, catching a standard Exception. otherwise, just write the code you think you'll need, try to compile it and you should get messages like: unhandled ...Exception …

Member Avatar for stultuske
0
107
Member Avatar for mrjoli021

read the line, and within the loop, you just extract a single char from that line. that's the one you put in your array, next loop, you read the next char and so on, till you've reached the end of the line

Member Avatar for stultuske
0
87
Member Avatar for DesiFrank

most important: write your own code and don't just copy-paste something a friend gave you. it's nice as illustration, but you won't learn half as much in it as when you write it yourself.

Member Avatar for Ezzaral
0
248
Member Avatar for IMtheBESTatJAVA

well.. you don't have to show us your code and errors, if you think i!t's redundant, but how can we fix 'm if we don't know what to fix? ever thought about that, genious?

Member Avatar for peter_budo
-1
176
Member Avatar for MxDev

viva MySQL :) btw, NetBeans is not having trouble to connect to your database, since NetBeans isn't trying to get connected. the code written in NetBeans might, but I do doubt NetBeans itself would even know that your database exists.

Member Avatar for fuzzyduq
0
93
Member Avatar for MxDev

loop over all the cells check the [Code=java] isCellSelected(int a, int b); [/Code] and if so, use the [Code=Java] getValueAt(int a, int b); [/Code] method

Member Avatar for stultuske
0
28
Member Avatar for gurudattbhat

[QUOTE=gurudattbhat;734922]thanks for replying...i have one statement .that statement has two combo field(Entered/Approved) . when combo field is marked as Approved than date isto be moved to date field.and date should not moved to date field when entered is selected from combo feild i mean i want to move todays date …

Member Avatar for sillyboy
0
84
Member Avatar for Frank0051

[QUOTE=quuba;735022]I think, i resolved your old problem.[/QUOTE] old problem to say the least. is there any reason you have to assume that during the last two years he/she didn't manage to find the sollution him/herself?

Member Avatar for stultuske
0
516
Member Avatar for AceAtch

[QUOTE=AceAtch;733711] In my program "Year" i have the code to prompt the user to enter the year. In my application "YearApp" how do i call that code so it can be act apon? [/QUOTE] my response would be, don't. with this I mean, it's meaningless to prompt for input in …

Member Avatar for stultuske
0
159
Member Avatar for Eckythump

[QUOTE=Eckythump;734585]So, what is everyone's most hated Java API, as well as most hated third-party API?[/QUOTE] Hi Eckythump. for some reason my most hated Java API is a non-existing one. for your second question, if that third-party API is about a class written in Java, it's still a Java API, so …

Member Avatar for stultuske
0
91
Member Avatar for thangarajforyou

propably your applet is working just fine, but you might have got some errors in your code that you overlooked. there could be a whole lot of answers to this question, since quite a lot can go wrong. but as far as I checked, none of us is a clairvoyant, …

Member Avatar for stultuske
0
397
Member Avatar for enuff4life

[QUOTE=javaAddict;733934]That is not what [I]enuff4life[/I] has asked. Try this: [CODE] String s = new String(""); String s1 = new String(""); System.out.println("enter String : "); Scanner keyboard = new Scanner(System.in); while(!s.equals("end")){ s = keyboard.nextLine(); if (!s.equals("end")) { s1 += s + "\n"; } } System.out.println("you've typed: \n"); System.out.println(s1); [/CODE] [/QUOTE] or …

Member Avatar for stultuske
0
314
Member Avatar for Achupa

if I understand correctly, you don't need a Arms[] array and a Legs[] array, just a Limbs[] array. [Code="Java"] private Limb[] limbs = new Limb[4]; public ArrayList getArms(){ ArrayList returnVal = new ArrayList(); for(int i = 0; i < 4; i++){ if (limbs[i] instanceOf Arm){ returnVal.add((Arm)limbs[i]); } } return returnVal; …

Member Avatar for stultuske
0
833
Member Avatar for anil_forum

if you say: easiest way to do this, I read: laziest way to do this. I would recommend using JNDI instead of RMI, since RMI messages will be blocked if there's a firewall active

Member Avatar for stultuske
0
140
Member Avatar for cproud21

would be a crappy programming language if you couldn't fit two combo boxes into one frame, wouldn't you think?

Member Avatar for puneetkay
0
182
Member Avatar for jayjaysam0441

[QUOTE=javaAddict;731990]Two for-loops[/QUOTE] why try to figure out how to fly, if you can walk? just use two for loops as javaAddict suggested

Member Avatar for Alex Edwards
0
207
Member Avatar for Te'DDy

[QUOTE=cirose;731702]can i see the code? XD[/QUOTE] do not dig up dead threads and if you're interested, do not ask for code if it's posted within the thread already.

Member Avatar for stultuske
0
793
Member Avatar for c++ prog

there's no use in asking us to correct the errors in your code if you haven't even tried whether there are errors in your code to correct wondering what kind of compiler you want to use for java code, is wondering if you should install car-wheels on your car, or …

Member Avatar for VernonDozier
0
146
Member Avatar for joshmo

don't use two arrays, just use one, for both initializing and printing. also, in your [CODE=Java] public void arr3(){ ... }[/CODE] method, you are referring to Array arr, which is not declared within the method, and, I think after looking at your other methods, where it's passed as an argument, …

Member Avatar for joshmo
0
377
Member Avatar for jackieblock

haven't read the code in detail, and haven't worked on Swing app's for a while, but last time I made some, I sometimes had that problem when not using [Code=Java] this.pack(); this.show(); [/Code]

Member Avatar for quuba
0
148
Member Avatar for asus2008

[QUOTE=asus2008;727201]any1 know s anything about cr8ting mobile game "go" need ur help [/QUOTE] write down the logic in pseudo code or NS-diagrams, choose an IDE, start coding, if you happen to run into errors you can't solve yourself, let us know and, if that happens: learn to write 3ngl1sh

Member Avatar for stultuske
0
126
Member Avatar for AceAtch

> `CircleApp.java:33: cannot find symbol` > `symbol : variable getRadius` > `location: class Circle` > `System.out.println("The Radius is:" + myCircle.getRadius);` > `8 errors` I take it getRadius is a method, so call it like a method, not like some static variable `System.out.println("The Radius is: " + myCircle.getRadius());`

Member Avatar for javaAddict
0
180
Member Avatar for king_khan

[QUOTE=king_khan;731373] In java, Why we use enable Events() method[B]?[/B] [/QUOTE] to enable an Event? [QUOTE=king_khan;731373] Which technique/concept can be use to implement multiple inheritances in java[B]?[/B] [/QUOTE] the implementation of multiple inheritance? [QUOTE=king_khan;731373] How can a GUI component handle its own events[B]? [/B] [/QUOTE] by telling it: [Quote=GUI component]Work, b*tch!!![/QUOTE]

Member Avatar for stultuske
-1
74
Member Avatar for the_swan
Re: kk

[QUOTE=the_swan;731340]this is a try :)[/QUOTE] making mistakes in a four-word sentence... Ali G would say: 'Restecp'

Member Avatar for stultuske
-2
100
Member Avatar for the_swan

[QUOTE=the_swan;731342]hiiiiiiiiiiiiiiiii every body.... I'v regist new here :) and i want your help im a student in cpmputer science my third year and im traying to find out some ideas that help me in preparing for graduation projects plz help and thank you alot sorry for my english[/QUOTE] I have …

Member Avatar for stultuske
0
103
Member Avatar for new_2_java

[QUOTE=s_damry;730552]Hello, I was wondering if you found a solution a Iḿ getting a similar problem, i.e. unmarshal exception and invalidclassexception thanks S.[/QUOTE] you could start your own thread instead of just re-opening a thread that's been dead for almost a year

Member Avatar for new_2_java
0
1K
Member Avatar for britto

[QUOTE=britto;727303]what r the files required for compiling java pgm.... is javac and java enough....[/QUOTE] are you now telling you haven't even tried to compile anything yet? javac is the compiler, yes. I 'd suggest you first get to learn how that thing works, before you go and try to create …

Member Avatar for stultuske
0
167
Member Avatar for mahvash

[QUOTE=mahvash;730540]Hi.. is there any way thwat i can convert my csharp tool to java, since now iam using linux and it doesnot support chsarp, i have to submit my final project in december so need urgent help... Thanks please reply on my email id .. if anyone can help [/QUOTE] …

Member Avatar for dickersonka
0
86
Member Avatar for allpool

start with the easy parts, which would be the printing of random numbers and random choosing the operator. I'd leave the functions for the System Clock for last

Member Avatar for stultuske
0
60
Member Avatar for edensigauke

why trying to re-invent the wheel? [URL="http://www.javazoom.net/index.shtml"]http://www.javazoom.net/index.shtml[/URL]

Member Avatar for stultuske
0
164
Member Avatar for sakkiharry

did you really have to start another identical thread just to put the smileys in the titlename? no doubt you are a very proffesional developer

Member Avatar for stultuske
0
33
Member Avatar for manelBH

[QUOTE=manelBH;729998] I need help please , can anyone have a similar code. [/QUOTE] I guess that's possible [QUOTE=manelBH;729998] NB:please excuse my english and i hope explain my purpose[/I][/QUOTE] yup, you explained it ... you need to get something done, give us a description of your work, and, just to be …

Member Avatar for stultuske
0
114
Member Avatar for zyaday

[QUOTE=zyaday;729913]I have these java packages, There are different games in java with menus, buttons and everything. Now i want my software to be jsut like the other softwares which one can install and use. My problem is I don't know how to create a set up file in java. I …

Member Avatar for stultuske
0
171
Member Avatar for faisaly

[QUOTE=faisaly;729760]Dear All, I've three questions. Kindly answer these. 1. Why we use enableEvents() method? 2. Can a GUI component handle its own events? If yes; then how? 3. Which technique/concept can be use to implement multiple inheritances in java?[/QUOTE] without a doubt the answer to all of these questions can …

Member Avatar for stultuske
0
114
Member Avatar for Amoneh
Re: help

[QUOTE=Amoneh;729191]Hi i think a bout something in "java applet" ' but i\m afraid because i know llitel about it. [/QUOTE] why choosing a language you don't know? wouldn't you be better of making a project in an environment you're familiar with? I could go ramble on here, but peter_budo already …

Member Avatar for stultuske
0
92
Member Avatar for trtheepan

[QUOTE=trtheepan;729190]How to create and run signed applet in SDE[/QUOTE] sounds like a good title for a tutorial.

Member Avatar for stultuske
0
24
Member Avatar for smakos

[QUOTE=BestJewSinceJC;728727]I'm still not sure what ugent means, though. *also shrugs*[/QUOTE] urgent means: I've been eating a lot of beans and just figured out I ran out of toilet paper. as for the starter of this thread, I've read the description of what you want to accomplish, if you are in …

Member Avatar for bobocqu
0
112
Member Avatar for adetya

[QUOTE=javaAddict;726839]You have got to be kiding[/QUOTE] hey, any programmer without a sense of humour burns out sooner or later.. as for adetya: yes, we cán propably complete your code. too bad we won't, now isn't it? we are willing to help you solve your problems for your assignment, if you …

Member Avatar for masijade
0
178
Member Avatar for coolbuddy059

a lot of IDE's have allready standard built-in options to generate JavaDoc based on your code (and comments). check those out

Member Avatar for jbennet
0
81
Member Avatar for Achupa

[QUOTE=Achupa;727168]Hi, can someone help me modify this code to achieve the following: Add methods to your Human that return collections of arms and legs. implement these methods by iterating through the collection of limbs and checking what type of limb they are. Note that you will need to use the …

Member Avatar for stultuske
0
124
Member Avatar for Kamal_Java

[QUOTE=Kamal_Java;727183]How to write recursive method that takes an array of Strings and prints them out in reverse order, one per line. I was able to do this by iteration but not by recursion since its an array of string .could any one help me ...[/QUOTE] you accept a String array …

Member Avatar for stultuske
0
97

The End.