Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
1 Endorsement
Ranked #858
Ranked #1K
~27.2K People Reached
Favorite Forums
Favorite Tags

38 Posted Topics

Member Avatar for riahc3

@james, Your "NoSuchAlgorithmException" gives the following error for me: *No exception of type Object can be thrown; an exception type must be a subclass of Throwable*

Member Avatar for JamesCherrill
0
719
Member Avatar for Violet_82
Member Avatar for jalpesh_007
Member Avatar for asifalizaman

KML (Keyhole Markup Language) files are for geographic data. It isn't part of the standard Java as far as I know, so you are going to need a 3rd party Java API. There are some KML libraries around that certain groups have produced.

Member Avatar for Starstreak
0
195
Member Avatar for javauser1512

To throw the spanner in the works a bit ... perhaps this isn't the best way to find the largest number. Usually you assign the first number largest, and then compare it to subsequent inputs. If the next number is larger than the current one, then that becomes largest and …

Member Avatar for Starstreak
0
318
Member Avatar for john.stepanek.9

The first code is not a subset of the second, so will behave differently. The second class doesn't prompt for a file name. There is also a problem with (some of) the results it returns.

Member Avatar for Starstreak
0
309
Member Avatar for london-G

Assuming all the connection details are correct, I would load a database browser like SQL Workbench and see if you can access the tables independently of the Java code.

Member Avatar for tux4life
0
312
Member Avatar for cgogte

I've been through just about all of the available Java instruction books, and I can honestly say that the online Oracle tutorials are a nightmare for a beginner. Virtually ANY book is better to start with. One can't avoid the Java API though. Learning how to read and implement this …

Member Avatar for ~s.o.s~
-1
154
Member Avatar for Roshan92

I may be mistaken, but two classes appear to be missing from the code CreateVideoList(); UpdateVideos();

Member Avatar for Starstreak
0
219
Member Avatar for wannafzan

Delivery and pickup should be mutually exclusive. At the moment you can select both at the same time.

Member Avatar for wannafzan
0
2K
Member Avatar for kristenw17
Member Avatar for JamesCherrill
0
347
Member Avatar for sapure
Member Avatar for sapure
0
181
Member Avatar for Delnith

Avoid the official java tutorial. It can be confusing at best. Stick to a good, comprehensive book and get very familiar with the Oracle Java API.(http://docs.oracle.com/javase/7/docs/api/)

Member Avatar for stultuske
0
276
Member Avatar for linezero

From Java 6 javadoc: "StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead." http://download.java.net/jdk7/archive/b123/docs/api/java/util/StringTokenizer.html

Member Avatar for JamesCherrill
0
305
Member Avatar for abinaya.lingam

Post the work you have done so far. What you could do is read the file, line by line into a String. Then use **split** to remove the commas and put it into an array. String line = "Apples,bananas,oranges"; String[] dataArray = line.split(","); The above uses a simple array, but …

Member Avatar for JamesCherrill
0
365
Member Avatar for akinfemi

You have a large while loop `while (simClock <= 500) {` ... then a print statement near the end ` System.out.printf("%d\n",simClock);` `}` Given the calculation and randoms, simClock is staying less than 500, so the while condition remains true and it repeats the print statement.

Member Avatar for Starstreak
0
134
Member Avatar for Dane2259

Well just glancing at it, this is what it appears to be doing. It leaves Blueberry; then swaps Lite and Strawberry. It compares Vanilla to Lite and swaps it, then swaps places with Hash and so on. In other words; the V in Vanilla goes to the bottom of the …

Member Avatar for Starstreak
0
154
Member Avatar for laguardian
Member Avatar for mikias.kidane.9
Member Avatar for Taywin
0
1K
Member Avatar for im abcd
Member Avatar for Ravish.Ahmad.Khan

You have declared an array of a certain size, but your program is trying to access part of it outside the limit.

Member Avatar for Starstreak
0
173
Member Avatar for techxaidz

The check digit is used to confirm the number is correctly read/written or just valid. Think of a credit card number. You could also use the substring() method. Assuming you wanted just a hyphen in the middle. Split the number into two. String firstTwo= number.substring(0, 2);//digits 0 and 1 String …

Member Avatar for stultuske
0
213
Member Avatar for dantheman4

Depends on the approach you are taking. Maybe give us a quick algorithm, then we can suggest improvements or a different option.

Member Avatar for Nutster
0
146
Member Avatar for mikias.kidane.9

`System.out.print(myString);` You are trying to print an array. Split will create the array in one go, but you need to do some work to print it. You need to use a loop.

Member Avatar for NormR1
0
251
Member Avatar for dantheman4

Dan, one tip I find helpful for beginners is to label the end brackets. For example: public class AnyClass { public static void main(String[] args) { ... }//main }//class

Member Avatar for Starstreak
0
362
Member Avatar for spring2014

Initialize variables to zero. Not sure why days are intially = 60 ?? May I suggest converting everything to seconds. Then try something like this (using % to get the remainder): hours = totalSecs / 3600; minutes = (totalSecs % 3600) / 60; seconds = totalSecs % 60; or something …

Member Avatar for NormR1
0
604
Member Avatar for DahliaBasik

In class TestProgram, the main method instantiates myCircle AFTER it is called. (just a guess ;-) )

Member Avatar for DahliaBasik
0
2K
Member Avatar for anglwthnati2de

Just a few things: * You're trying to make it look neater by making the formatting a string variable. I would say this is not going to help. Unless this is part of some other plan, maybe just leave the formatting alone e.g. printf("%d",x); * Some of the variables are …

Member Avatar for anglwthnati2de
-2
277
Member Avatar for jury

So c is a counter? (why not call it that) Is it supposed to be keeping a tally on a specific array element? BTW. n is not used.

Member Avatar for Nutster
0
142
Member Avatar for greg2186

You're asking for too much information in one go in line 8. Think of the user entering it all. So many **if** ... statements. Prime candidate for a **case** statement. (Have you covered those yet?) Bear in mind when you use if xxx if yyy if zzz .. that your …

Member Avatar for greg2186
0
1K
Member Avatar for zeusprog
Member Avatar for kkcaddy
Member Avatar for vinnitro
0
208
Member Avatar for hszforu

Yes. Take the Main method out of Oneclass and put it in Twoclass and it should work as intended. Also don't forget to use standard naming conventions for class names.

Member Avatar for hszforu
0
238
Member Avatar for LoyalOne2

For this exercise, just use the default path (filename in the space between the quotes). Then for Eclipse, look in your workspace. On windows 7, the default is {C:\Users\Star\workspace\ThisProject} I would just play with the file I/O for now and just see if you can read the data. Maybe just …

Member Avatar for Starstreak
0
150
Member Avatar for LoyalOne2

In your test program, try instantiating the statistics class like so: Statistics stats = new Statistics(); Then you can refer to the methods using 'stats.xxx'

Member Avatar for LoyalOne2
0
2K
Member Avatar for jalpesh_007

I find your code confusing. Perhaps your naming conventions are too cryptic. You also only provide part of the code, not the whole class. I'm also uncertain what it is meant to do. Can you clarify please?

Member Avatar for Taywin
0
3K
Member Avatar for ihiroshi30
Member Avatar for psy.blast

There are a few things wrong with the program. (Apart from the variables not being initiated) (1) line 34: period = Scanner.nextInt(); The scanner expects an integer value. It isn't clear whether you want input to be a String or an integer. If you need the user to enter "daily", …

Member Avatar for steph7
0
249

The End.