Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
85% Quality Score
Upvotes Received
7
Posts with Upvotes
6
Upvoting Members
5
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #1K
~19.3K People Reached
Favorite Tags

36 Posted Topics

Member Avatar for sillyboy

[QUOTE=MosaicFuneral;831213]Pink Floyd - Childhood's End, 7th March 1973 bootleg About a two and a half-hours long, and superb quality for an early '70s live recording.[/QUOTE] listening to dark side of the moon right now...

Member Avatar for Helianthus
0
5K
Member Avatar for fahadyousaf

my guess is O(x+x^3). cos if n tends to a huge number, the 3 nested for loops will likely take x^3 for the operation of x=x+5. and for the single for loop for y=y+1, thats adds the linear complexity.. EDIT- my bad, i didnt see the *3 for the first …

Member Avatar for \007
0
457
Member Avatar for Dhruv Gairola

this is inside my servlet: [CODE]ArrayList<String> currentCustomer = model.getAllCustomers(); req.setAttribute("currentCustomer", currentCustomer );[/CODE] how do i access this arraylist in my JSP file? I eventually wanna loop over each string element.

Member Avatar for Dhruv Gairola
0
246
Member Avatar for ravindraravi

plus the language depends on what you want to do with the project e.g. if speed is an issue, use c, etc. if safety is an issue, use java, etc.

Member Avatar for Dhruv Gairola
-1
80
Member Avatar for frankel81

if(you are serious about this qn) ------initialise a double array, iterate thru each element in a for loop, and 1.3X ------the value of each element; ------read the array API; else ------wtf; ------System.exit(0);

Member Avatar for plasticfood
0
152
Member Avatar for ARaza110

cos the add method of the vector only accepts objects. therefore, primitive values like ints will not be accepted. only Integer objects will be accepted. refer api: [url]http://download.oracle.com/javase/1.4.2/docs/api/java/util/Vector.html[/url]

Member Avatar for ARaza110
0
132
Member Avatar for Dartz654

what you are talking about can be done using the model view controller paradigm in java ee.. it uses a combination of servlets (controller)/JSP (view)/javabeans (model) to execute java code on a website. so your the first step is to go to netbeans and start a web project. you will …

Member Avatar for Dhruv Gairola
0
189
Member Avatar for shelexelex

there are a number of errrors here: 1. its [CODE]import javax.swing.JApplet;[/CODE] NOT [CODE]import java.swing.JApplet;[/CODE]. 2. theres a missing ; after your drawString 3. your HTML file shouldnt have the <JApplet> tag. Use <applet> instead. And remember to open and close your tags. 4. when closing tags, it shouldnt be <\HTML> …

Member Avatar for Dhruv Gairola
0
101
Member Avatar for olsane

accept user input using Scanner and System.in or perhaps a GUI, then use that number to initialise a 2D array (im assuming u need a n by n array). e.g. int [] [] arr = new int [n] [n];

Member Avatar for Dhruv Gairola
0
110
Member Avatar for Liviu0CODER

depends on what you want to do. if u need speed, id suggest c or c++. if u want safety, java is a good bet.. umm, ive heard python is easy to start off with.. if ur nuts, learn haskell!

Member Avatar for Liviu0CODER
0
145
Member Avatar for amras123

what an odd question.. obviously you're not printing anything to the screen so you shouldnt observe any output..

Member Avatar for Dhruv Gairola
0
89
Member Avatar for rincethomas33

put some widgets into a JFrame, add action listeners, when u click, an action event will be generated which will be handled by the actionPerformed method where u can do what u want. but since you asked such a silly question w/o googling up first, i dont think this answer …

Member Avatar for Dhruv Gairola
0
128
Member Avatar for coding101

[QUOTE]For each char c in [charAt(0)..charAt(s.length()-1)] check that it's in the range [a-z] or [A-Z]. Or, if you want a more permissive test, check that it's not in the range [0-9] - that will allow everything but the digits.[/QUOTE] yes, u shd do that. btw, you would probably need to …

Member Avatar for Dhruv Gairola
0
187
Member Avatar for asif786

why dont you use switch/case statements? for the default case, accept a new input. cos your programming style is very messy.. anyway, ur program keeps looping cos your in.next() is inside the else if loop. bring it outside..

Member Avatar for asif786
0
113
Member Avatar for LianaN

your event dispatch thread should be independent of your swing worker thread. the event dispatch loads the GUI while the swingworker does the intensive resource loading. for an example implementation, refer : [URL="http://download.oracle.com/javase/tutorial/uiswing/components/icon.html"]http://download.oracle.com/javase/tutorial/uiswing/components/icon.html[/URL] look for the picture tumbnail displayer example. btw in that example, the event dispatch happens on the …

Member Avatar for Ezzaral
0
449
Member Avatar for yap_1991

take the GUI input in the actionPerformed method. create an object of your other class and pass the GUI input value as a parameter to the objects constructor.

Member Avatar for yap_1991
-1
157
Member Avatar for Oregand

methods are operations. for example, say you have a car. what operation would you want to perform on a car? e.g. drive, refuel, checkMileage, brake, etc. basically thats it. you use methods on objects. in this case, car would be the class, and perhaps Lambhorgini Murciealago would be the object, …

Member Avatar for Oregand
0
134
Member Avatar for nikilvarma
Member Avatar for Dhruv Gairola

Hi there friendly people of daniweb. My problem is that when i double click an executable jar file, nothing happens. Even when i use command prompt and type java -jar "filenae" it doesnt work. Any ideas why?

Member Avatar for Dhruv Gairola
0
120
Member Avatar for yap_1991

from your GUI class, you can instantiate objects in its actionPerformed method. then simply call the methods on those objects (of your other program). you might then have to add the program results to the GUI. if you check javas API, there are numerous ways to add things to the …

Member Avatar for yap_1991
0
205
Member Avatar for titan5
Member Avatar for iraqi4life

perhaps you could use arraylists instead of arrays to provide some flexibility.. other than that im not entirely sure how to improve your solution till i can see some code..

Member Avatar for iraqi4life
0
182
Member Avatar for extemer
Re: JVM

before that, ask yourself- what is google and what is it used for.

Member Avatar for Dhruv Gairola
-1
117
Member Avatar for Eric Cute

well, everyone in my class is using netbeans to create GUIs.. for some reason, i hand coded mine.. you get a better understanding of GUIs..

Member Avatar for RushabhShah1110
0
176
Member Avatar for fahadyousaf

make a new JTextArea object. put it in a JFrame. addActionListener to this JTextArea object. take the input from the JTextArea (check Java API for JTextArea for the relevant method) and put it in a file. simple.. ummm, you do know how to append text to a file dont you?

Member Avatar for Dhruv Gairola
-1
87
Member Avatar for Dhruv Gairola
Member Avatar for serph09

put all your cast values in an array. then make another method called compare(), which takes adjacent 2 elements of this array and if both are equal, returns 1 and 0 if both are unequal. put these 19 comparison values (of 1s and 0s) in a new array of ints. …

Member Avatar for kezkez
0
184
Member Avatar for drh9

lol, ive actually written a simple parser for my Haskell assignment.. haskell tends to be quite abstract actually, and is not for everyone.. its gonna be tough making a fully fledged parser and interpreter..

Member Avatar for Dhruv Gairola
0
237
Member Avatar for baltik08
Member Avatar for nichu

wrap your code with try/catch blocks in your actionPerformed method. that way, if a user enters something incorrect, it will be caught by the catch..

Member Avatar for apines
0
93
Member Avatar for Dhruv Gairola

hey guys, just one question- how do i get netbeans to import a whole folder (containing numerous java files)? the only option i currently get is to import eclipse projects.

Member Avatar for Dhruv Gairola
0
139
Member Avatar for hassin

this code makes no sense whatsoever- 1. what is a perfect integer? 2. n is not initialised. so it becomes 0, and the for loop will never be entered. 3. a=o, it should be a=0.

Member Avatar for Buffalo101
0
124
Member Avatar for 080346

1. You can have your class implement ActionListener. 2. Register a button (for example) with addActionListener method. 3. In your actionPerformed method, define the other GUI. e.g code [CODE]import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.File; import java.util.*; public class DemoJFileChooser extends JPanel implements ActionListener { JButton go; JFileChooser chooser; …

Member Avatar for javaAddict
0
4K
Member Avatar for kangkan_14

mutual exclusion is best exemplified by the readers and writers problem (this is a standard textbook scenario taught in universities). if ur dealing with mutex, you have to know this first. [url]http://en.wikipedia.org/wiki/Readers-writers_problem[/url]

Member Avatar for Dhruv Gairola
0
285
Member Avatar for prishe

make an AI controller for mario. i mean, cmon who doesnt like mario? i think youll probably have to evolve neural nets for this using Evolutionary Algorithms. [url]http://www.marioai.org/[/url]

Member Avatar for Dhruv Gairola
0
272
Member Avatar for Checkerboz

you need a main method, not a main class. this main method could either be in your Bankaccount class which you displayed or in another class (which creates a Bankaccount object).

Member Avatar for Dhruv Gairola
0
166

The End.