Posts
 
Reputation
Joined
Last Seen
Ranked #42
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
86% Quality Score
Upvotes Received
1K
Posts with Upvotes
1K
Upvoting Members
321
Downvotes Received
250
Posts with Downvotes
238
Downvoting Members
62
206 Commented Posts
49 Endorsements
Ranked #19
Ranked #18
~2.56M People Reached
Favorite Tags

4,084 Posted Topics

Member Avatar for DavidKroukamp

a semi nOOb? if you work hard enough, you can be an expert nOOb in no time ;) something you could also have changed in your code, to make it a bit more reusable: [Code=Java] public static ArrayList<String> readFile(String fileName) throws IOException{ ArrayList<String> fileContents = new ArrayList<String>(); ... // read …

Member Avatar for Bdill7
5
23K
Member Avatar for vegaseat

"Experience is nothing more but the sum off all your failures combined." "Off course debugging is harder than creating the original version. It has to work this time!"

Member Avatar for Reverend Jim
15
13K
Member Avatar for shanaka95

depends on what you're looking for: Carmageddon was pretty 'shocking' in it's days, and a new Carmageddon is about to be released somewhere later this year.

Member Avatar for Andrew_107
0
310
Member Avatar for ashim24810
Re: SMM

post decent, original and popular images, add funny, hilarious comments, and make sure it is shared. 'faked likes' can work against you just as easily as they can work for you. in the end, likes aren't worth anything. but when people notice you've "bought" or "generated" likes, nobody 'll take …

Member Avatar for richards1222
0
224
Member Avatar for KentDy

KentDy: on themselves, those networks won't generate more traffic. It's how you use them. Use them wisely, and they might (never a guarantee) generate so much traffic your server won't be able to keep up. Use them without thinking it through, and they will (this is a guarantee) impact your …

Member Avatar for Dani
0
363
Member Avatar for gautamz07

what is your guess? if you don't know the answer to this, you are clearly not ready to take the exam. take a look at the sticky threads that are meant to help beginning programmers.

Member Avatar for sourabh_8
1
958
Member Avatar for Devid Billa

John Matt: this thread is nine months old. I'm pretty sure that either the answer has been given already, or the OP's no longer following up.

Member Avatar for ivy.inc.Hugh
-2
2K
Member Avatar for LastMitch

Drag me to Hell, The Messengers, The Messengers 2 : the scarecrow Django Unchained Silent Hill the Rite ... nyah, had a bit of spare time lately :)

Member Avatar for LoanHensley
6
6K
Member Avatar for asfghjkl

Just because you nest it into another structure, doesn't mean the syntax changes. Assuming you are using Java: Person pers = getRandomPerson(); // assume this exists char character = pers.getLastName().getCharAt(0); switch(character) { case 'a': if ( pers.isAdult()) { System.out.println("Person: " + pers.getName() + " is an adult."); } else { …

Member Avatar for kasmar45
0
275
Member Avatar for ray.chappel

I assume he needs help with the // TODO part. I would suggest to get rid of a lot of those //Start and //End comments, it's make the code a bit ... ugly and busy.

Member Avatar for LohithS
0
194
Member Avatar for LZS_405

What exactly is your question? How to get the total prize at the bottom? You can add something like this: double sum = 0.0; for(int i = 0; i < new1.length; i++){ System.out.print(new1[i]); System.out.print(" "+new2[i]); System.out.print(" "+df.format(new3[i])+" "); Total1 = new2[i]*new3[i]; sum += Total1; System.out.println(df.format(Total1)); } System.out.println("\n Total: \t" + …

Member Avatar for stultuske
0
53
Member Avatar for gh.fuz

`System.out.println("score");` this prints the String "score", James asked to do: `System.out.println("score: " + score);` so you could verify the actual value

Member Avatar for JamesCherrill
0
6K
Member Avatar for stayfierce

Carrie Pugh: Welcome to Daniweb. Just a few hints, though: don't hijack old threads. This thread was answered five years ago. Saying you have no idea what you are doing, doesn't help us ascertan what you have tried. But, in my opinion, you have tried about nothing. "I only wanted …

Member Avatar for julianksb
0
53K
Member Avatar for James Gordon

first of all: don't consider this a website, it's an eCommerce. whether or not it is online, it is, in the first place, a shop, so market it as such. check who your target clients are (if you sell metal cd's, that'll be headbangers, if you sell cat- and dogtoys, …

Member Avatar for Naheedmir
0
469
Member Avatar for phphp

You may have Java 15 installed, but according to your screenshots, you are using Java 8

Member Avatar for JamesCherrill
0
125
Member Avatar for ANGEL123@@

Here's the bit I'm having trouble with: You are already at the stage of using persistence with actual databases, meaning for a beginner, pretty advanced material, yet you don't know how or where to implement a simple conditional statement ... Start without a database. look at your 'bus' with it's …

Member Avatar for stultuske
0
268
Member Avatar for z.smart

You read them all, and you filter the lines you've read. You only treat/store the items that are valid according to your filter. This is hardly a programming question, though, this is just the logic behind it you have to grasp.

Member Avatar for stultuske
0
54
Member Avatar for cyroclasim

PersonalInformation myInfo = new PersonalInformation(); name startName = new name("Joe Mahoney"); startAddress.setAddress("724 22nd Street"); startAge.setAge("27"); startPhoneNumber.setPhoneNumber("(555)555-1234"); This will not work. In clear, it won't even compile. Your PersonalInformation class has this as constructor: private String name; // A person's name private String address; // A person's address private int age; …

Member Avatar for stultuske
0
178
Member Avatar for shantuli

Kit82polo : if you have a question, start a new thread. don't revive a thread which is not related to your question, and that has been dead for 10 years.

Member Avatar for zunam
-5
81K
Member Avatar for Reverend Jim

>Imagine termites taking over your computer. VegaSeat: Imagine termites being used for RansomWare or a virus :)

Member Avatar for John_smith
10
21K
Member Avatar for diggdirectory

it seems a lot of people (not all) are "answering" the question without actually understanding the topic. SEO is NOT something you do from a Social Network. SEO does NOT mean get more traffic to your site. it does NOT mean promoting your site. it simply means: making sure that …

Member Avatar for monica_14
1
862
Member Avatar for spyindiarahul

travel - destination - holiday - .... look for words related to the subject of your site, and users might google/search on.

Member Avatar for sam_60
0
318
Member Avatar for Sourav_1

never tried this before, do doubt Java is the language you want to use for it, though.

Member Avatar for JamesCherrill
0
2K
Member Avatar for Mike1986

It would be easier to see what you did wrong, if you showed us how you did it. the input variable is supposedly the variable containing the text you want to check, so, best place to do it: at the beginning of the method: public static boolean isPalindrome(String input) { …

Member Avatar for JamesCherrill
0
2K
Member Avatar for rakesh4java

@Tejaswini, This thread is over 5 years old. it's no use replying to it. If you have a question of your own, please ask it in a new Thread.

Member Avatar for stultuske
0
1K
Member Avatar for John_165

James, don't forget this is the version that is supposedly no longer free-for-(commercial-)use, unless you use the OpenJDK version.

Member Avatar for JamesCherrill
0
2K
Member Avatar for WDrago

you can't have two public classes in one file, you can have only one public class, which has the same name as your java file.

Member Avatar for JamesCherrill
0
28K
Member Avatar for prnjn

are you sure you want to make a video chat application? sure, it makes a beautiful project, but if I take a quick glance at what you've got experience with, I hope you won't get overwhelmed, then again, 7 months gives you some space to learn new frameworks. this might …

Member Avatar for JamesCherrill
0
8K
Member Avatar for lashbandi

System.out.println("you already entered that word"); it's that easy. now, if you have further questions, please start a new thread and don't revive threads that are no longer active.

Member Avatar for sandy_5
0
12K
Member Avatar for abhijeet P

first of all: you shouldn't have re-started a thread that was solved a year ago, you should've started your own. show what you have (not the above code) and say what problems you are having with it.

Member Avatar for JamesCherrill
0
9K
Member Avatar for devs4p

I'm not sure if that is all to it. Personally, I found the old forum layout easier to work/navigate with, so after the switch I didn't visit that often anymore. No doubt this won't contribute to the bigger part of the leaving members, but it might explain a few. Also …

Member Avatar for happygeek
0
788
Member Avatar for esedee

if you are a 'newbie', as you yourself state, and this is a school-project (meaning limited time) either choose another (more realistic) topic, or prepare to accept defeat. There are tons of developers here who will sacrifice their spare time to help you out, but there's a difference between helping …

Member Avatar for Mridula_1
0
420
Member Avatar for cookie19ks

Sahil please start your own thread. but, to answer yours quickly: you can't. this code goes searching on the local drive. There are tons of libraries out there that provide you with a google/yahoo/... search for your website, on which you can choose to 'search this site' or 'search the …

Member Avatar for stultuske
0
9K
Member Avatar for NA

this is javascript, not java. You may want to update your tags, so it is shown in the correct subforum.

Member Avatar for stultuske
0
355
Member Avatar for manalibhadula

and how do you expect us to help ? you assume we know the contents of your local files ? what data are you expecting ? how do you know nohthing is inserted ? have you checked whether or not the code you are calling works the way it should …

Member Avatar for Didier_2
0
5K
Member Avatar for Horse_1
Member Avatar for stultuske
-1
157
Member Avatar for Joe_10

You could at least have mentioned what it is you're stuck with. Did you add code yourself, or just copy-pasted from that tutorial? What do you expect the (current) code to do? Does it compile? Does it run? If you get exceptions, are they compile- or runtime? Can you show …

Member Avatar for rproffitt
0
651
Member Avatar for scheppy

it just won't repaint ... that's a pretty vague description. what does it do? do you get error messages? does it compile? what behaviour exactly did you expect, and which lines of code did you expect to be executed, but appear not to be? did you debug your code?

Member Avatar for scheppy
0
1K
Member Avatar for Saboor880

also: unless your 'app' is just a front-end connecting to a remote back-end, forget it. Java is pretty easy to decompile. ship off your .jar (or whatever) file, and it might take the user less than 5 minutes to have full functionality anyway.

Member Avatar for Saboor880
0
436
Member Avatar for scheppy

It would help if you show the entire stacktrace. Just to give a direction to look at: a `NullPointerException` is caused by (trying to) accessing an instance member of a non-instantiated variable. In your case, part of the problem is your while loop. in your `run` method, comment out the …

Member Avatar for scheppy
0
1K
Member Avatar for ibenwa

of course it fails. servlets (and jsp's are compiled into servlets) run on the server side, not on the client side. Next to that: I very much doubt what you are trying is possible. It would cause quite some security concerns if it did.

Member Avatar for JamesCherrill
0
197
Member Avatar for laguardian

Kennie, just a few remarks... seeing as this is a 5 year old thread, was it really necessary to bring it back? secondly, since you have `vehicle` as a variable on class scope, why do you still pass it as a parameter to your method? for bonuspoints: can you find …

Member Avatar for stultuske
0
3K
Member Avatar for Megan_7
Member Avatar for kenneth_12

it boils down to this: step 1a: learn to read data from a JTable (which is not an array, just so you know) step 1b: write the code that does so step 2a: learn to write data into a DB step 2b: write the code that does so step 3: …

Member Avatar for Tarek_2
0
447
Member Avatar for divinity02

check your `Model` class catch(SQLException e){ } and your `DBCon` class catch (SQLException ex) { }

Member Avatar for divinity02
0
3K
Member Avatar for Fen_1

as to your remark: debugging has nothing to do with verifying whether it compiles or not. it means it compiled and it can run. debugging is running an application, but with the possibility to enter breakpoints. This can come in handy for several reasons: 1. If your flow does not …

Member Avatar for JamesCherrill
0
405
Member Avatar for Saboor880

True, that will work, but I wouldn't get too hung up on it. If it is indeed a local installed desktop application, the user (if he knows some Java) is more than capable of editing the application to remove the restriction from the application. Spending months of research to implement …

Member Avatar for stultuske
0
284
Member Avatar for skimmpy

why make it so complex? you can have the entire functionality from String object to reversed String object in ten lines of code, without having to go recursive.

Member Avatar for stultuske
0
5K
Member Avatar for aman rathi
Member Avatar for stultuske
1
1K
Member Avatar for Mira Kris

just starting out with Java and already trying to implement your own AI??? a tip would be: start at the beginning, and first learn the basics (yes, that will take more than two days of studying).

Member Avatar for stultuske
0
380

The End.