Search Results

Showing results 1 to 40 of 358
Search took 0.08 seconds.
Search: Posts Made By: peter_budo ; Forum: Java and child forums
Forum: Java 4 Days Ago
Replies: 9
Views: 300
Posted By peter_budo
Nope, wasn't him and nobody hijacked his account. You know there is more then one moderator/administrator around ;)
Forum: Java 4 Days Ago
Replies: 9
Views: 300
Posted By peter_budo
For the record, it wasn't jbennet
Forum: Java 9 Days Ago
Replies: 9
Views: 387
Posted By peter_budo
You misunderstand concept in the tutorial that I linked. This should be out too

public myguidemo(){ //constructor

try{
//driver and connection
...
Forum: Java 10 Days Ago
Replies: 9
Views: 387
Posted By peter_budo
You should put it in separated class. Have look for example at this JSP tutorial (http://www.daniweb.com/forums/thread141776.html) which shows databases connectivity from web application. However the...
Forum: Java 10 Days Ago
Replies: 5
Solved: for loop??
Views: 239
Posted By peter_budo
This works for me

public class Question5{

public static void main (String args[])
{
double n = 20;
int counter= 0;

for (int t =0; t<=25; t++)
Forum: Java 10 Days Ago
Replies: 5
Solved: for loop??
Views: 239
Posted By peter_budo
Extra character ">" somehow slipped in the wrong place. The line should be
n= (220/(1+10*Math.pow(0.83,t)));
Forum: Java 10 Days Ago
Replies: 9
Views: 387
Posted By peter_budo
What is necessary is for you to provide exact errors you getting from SQLException so you better catch that exception and print stack. Also your current program arrangement is very bad. You should...
Forum: Java 12 Days Ago
Replies: 15
Views: 684
Posted By peter_budo
Similar example here (http://www.daniweb.com/forums/post961890.html#post961890), you need to just adapt to your needs
Forum: Java 12 Days Ago
Replies: 15
Views: 684
Posted By peter_budo
For the Product class you need some constructor method and some getter and setter methods.
As for the logic of finding most expensive item use what ever you most comfortable...
Forum: Java 12 Days Ago
Replies: 15
Views: 684
Posted By peter_budo
Hint
Create class Product that is able to store following data
Enter product id
Enter product name
Enter product price

Make the Product class available to your application.
Use a Collection...
Forum: Java 16 Days Ago
Replies: 5
Views: 331
Posted By peter_budo
iPhone is not Java enbaled device so you cannot use JSE or JME.
You can do development with objective-C however SDK require Mac OS (therefore you need Apple Mac) and the cracked version used by so...
Forum: Java 26 Days Ago
Replies: 2
Views: 336
Posted By peter_budo
JFileChooser beside having showOpenDialog(Component parent) for selecting files to open/be processed has also showSaveDialog(Component parent) ...
Forum: Java 28 Days Ago
Replies: 7
Views: 1,018
Posted By peter_budo
So on the end you went with my original suggestion :D
Forum: Java 28 Days Ago
Replies: 7
Views: 1,018
Posted By peter_budo
You better post your issue in new thread instead of trying to bargaining in style "give me what you have, maybe I will give you what I have.."
Forum: Java Nov 18th, 2009
Replies: 3
Views: 254
Posted By peter_budo
EDIT: Little late for reply but anyway...

You tried to apply your logic to the problem but chosen wrong approach. Operation inside the brackets it is a statement of a condition. If the condition...
Forum: Java Nov 15th, 2009
Replies: 16
Solved: Append to array
Views: 1,046
Posted By peter_budo
-1
Yes
Yes
Forum: Java Nov 14th, 2009
Replies: 16
Solved: Append to array
Views: 1,046
Posted By peter_budo
LOL, I guess I should not be replying to threads when I get out of the bed...
Forum: Java Nov 14th, 2009
Replies: 16
Solved: Append to array
Views: 1,046
Posted By peter_budo
Interesting behaviour, I was thinking that repeated assignment in this scenario is fine as basically this should repeatedly overwrite that single object of names array. We will have wait and see if...
Forum: Java Nov 13th, 2009
Replies: 4
Views: 316
Posted By peter_budo
I do not know if you have hard-coded path to folder or not, but once you have path tot the folder you can use File class method list() (http://java.sun.com/javase/6/docs/api/java/io/File.html#list())...
Forum: Java Nov 12th, 2009
Replies: 5
Views: 281
Posted By peter_budo
A list of connection strings (http://www.java2s.com/Tutorial/Java/0340__Database/AListofJDBCDriversconnectionstringdrivername.htm)
Forum: Java Nov 9th, 2009
Replies: 10
Solved: Error Message
Views: 527
Posted By peter_budo
>Java DB 10.4.2.1: I assume that's Java's database, which I don't use and should be able to remove, unless Java uses it internally.
Just leave it, you may want ot use it in the future

>Java(TM) 6...
Forum: Java Nov 9th, 2009
Replies: 10
Solved: Error Message
Views: 527
Posted By peter_budo
PATH is C:\Program Files\Java\jdk1.6.0_16\bin
JAVA_HOME is C:\Program Files\Java\jdk1.6.0_16 (without "bin folder at the end)
CLASSPATH is not need it since Java 1.4
Forum: Java Nov 2nd, 2009
Replies: 7
Views: 12,076
Posted By peter_budo
You must be real dump not to see the sarcasm of request...
Forum: Java Oct 30th, 2009
Replies: 2
Views: 367
Posted By peter_budo
As you already found out you can not check for something that is not there, something you did not declare.
You may consider simple work around like this
if (i+1 != nubArr.size()) taking in...
Forum: Java Oct 23rd, 2009
Replies: 5
Views: 447
Posted By peter_budo
Guess it will be down to the fact we have here nice rule - We only give homework help to those who show effort (http://www.daniweb.com/forums/announcement9-2.html) that you ignored.
Next OP...
Forum: Java Oct 23rd, 2009
Replies: 10
Solved: Error Message
Views: 527
Posted By peter_budo
beside JAVA_HOME do you have set PATH in system variables as C:\Program Files\Java\jdk1.6.0_16\bin?
Forum: Java Oct 22nd, 2009
Replies: 5
Views: 447
Posted By peter_budo
Be creative, for example if you read input from user you will get string object. Convert string to character array, read array element by element, convert element to integer and fine out if it is odd...
Forum: Java Oct 22nd, 2009
Replies: 7
Views: 1,018
Posted By peter_budo
Sorry, I cannot help right know (little busy at the moment), but you can have look at Beginning J2ME: From Novice to Professional Chapter 12...
Forum: Java Oct 22nd, 2009
Replies: 10
Solved: Error Message
Views: 527
Posted By peter_budo
No JavaFX is just add-on with NetBeans instalation. Did you set path to your installation of Java like in the first part of this article (http://webdev.sis.pitt.edu/st/sec_cookie/cookie2.htm) (up to...
Forum: Java Oct 20th, 2009
Replies: 4
Solved: J2ME -> Android
Views: 1,156
Posted By peter_budo
NO there aren't any free ebooks that are legal however there is Android Essentials (http://books.google.com/books?id=CU6rr-qkUysC&lpg=PA3&dq=android&pg=PP1#v=onepage&q=&f=false) and Android: A...
Forum: Java Oct 16th, 2009
Replies: 19
Views: 1,417
Posted By peter_budo
Remove "<Student>" from ValidRecords class opening, problem solved...


package Assignment;

import java.util.*;
/**
*
* @author Nigel Novak
*/
Forum: Java Oct 11th, 2009
Replies: 7
Views: 787
Posted By peter_budo
You need to pay closer attention to opening and closing of brackets. See bellow code (the code still will not compile and throw some errors which you need to solve)

import javax.swing.*;
import...
Forum: Java Oct 5th, 2009
Replies: 3
Solved: Address Book
Views: 678
Posted By peter_budo
You cannot throw exception on class. You can make class throw exception with use of try catch block (often followed by finally)

Scanner inFile;
try{
inFile = new Scanner(new...
Forum: Java Oct 4th, 2009
Replies: 3
Solved: Address Book
Views: 678
Posted By peter_budo
I have no idea what I'm looking for as I do not see any use of outFile.print(); or PrintWriter outFile = new PrintWriter(outfile);

However what I see here is intentionally another problem
...
Forum: Java Oct 1st, 2009
Replies: 20
Views: 1,877
Posted By peter_budo
No offence, but looking on your posting history I'm not sure if you actually posted in correct section.
Are you sure you talking about Java as programming language by Sun Microsystems or you wanted...
Forum: Java Sep 27th, 2009
Replies: 2
Views: 380
Posted By peter_budo
My favourite forum rule: We only give homework help to those who show effort (http://www.daniweb.com/forums/announcement9-2.html)

So start doing something...
Forum: Java Sep 22nd, 2009
Replies: 6
Views: 395
Posted By peter_budo
You did not added menu bar to your frame setJMenuBar(JMenuBar menubar) (http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html#setJMenuBar(javax.swing.JMenuBar))
Forum: Java Sep 20th, 2009
Replies: 6
Views: 639
Posted By peter_budo
Few things for start

I split your single file of nearly 600 lines into multiple files as they should be organized
in Java Microedition there is no String method as equalsIgnoreCase() please...
Forum: Java Sep 16th, 2009
Replies: 6
Views: 639
Posted By peter_budo
Put your code in ZIP/RAR and upload it with next post so I can have look what is going on. The above is not standard behaviour.

PS: To attach document to post you need to be in Advanced Editing...
Forum: Java Sep 14th, 2009
Replies: 6
Views: 639
Posted By peter_budo
Linked tutorial is 7 years old so if high-end devices used that time are now more likely out of stock and not used any more. Any of current low-end devices can do more then these "high-end".

As...
Showing results 1 to 40 of 358

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC