4,084 Posted Topics

Member Avatar for ali11
Member Avatar for stultuske
0
149
Member Avatar for divinity02

not to mention the fact that you should learn to write compilable code, before trying to implement algorithms.

Member Avatar for stultuske
0
222
Member Avatar for gahhon

You can have an abstract class without any methods, and you can have abstract methods which only contain non-abstract methods. so: 'both childclasses are having the same methods, but different execution code', not always. public abstract class Person{ private String name; public Person(String name){ this.name = name; } public void …

Member Avatar for JamesCherrill
0
227
Member Avatar for Shiladittya
Member Avatar for Robert_34

the actual error is, null means: there is no value assigned to the variable. so, if you call a method and ask them to parse 'null' to a numeric value, it 'll fail. No, the error can not have been thrown at line 171. it happened, as your error messages …

Member Avatar for JamesCherrill
0
828
Member Avatar for collin_ola

It seems you had that problem, because your input was "neither an OLE2 stream, nor an OOXML stream". Check the method for what it is expecting, and make sure you pass a valid parameter to it.

Member Avatar for stultuske
0
2K
Member Avatar for Rachy3091

vivekH: this is an ancient (read: dead) thread. There's little point in commenting on it.

Member Avatar for stultuske
0
144
Member Avatar for Fayzan

that would depend on the datatype. especially when you are weak, you should try yourself, by just asking someone to do it for you, you won't learn anything. what have you got so far?

Member Avatar for JerrimePatient
0
221
Member Avatar for Bharti_1

you don't know how to store a String in an arraylist? List<String> arrayList = new ArrayList<String>(); arrayList.add("myString"); if it's something else that's bugging you, could you be a bit more specific?

Member Avatar for Bharti_1
0
384
Member Avatar for erdie213

No. At the very least, try to do it yourself. The reason you were given this assignment, is because your teacher wants to find out whether you know how to do this. We are willing to help you improve your coding skills and understanding, not to help you cheat. The …

Member Avatar for stultuske
-2
95
Member Avatar for shahera.arafat

You should have a class: Year, which has twelve instances of a class Month, which has x instances of class Day. in class Day you keep a List or Set of Appointments. All you have so far is GUI. You'll need actual logic to go with it, too.

Member Avatar for shahera.arafat
0
146
Member Avatar for b2bemailexperts

have millions and millions of people install the alexa spyware (which basically is what it is) and have them surf to your site. Personally, I wouldn't bother with Alexa ratings all that much. It bases itself on users of the Alexa Toolbar (which is far from everyone), which is only …

Member Avatar for zomgmike
0
165
Member Avatar for divinity02

Random generator = new Random(15) + 1; how could this not result in a compile time error? generator is an instance of the Random class, it is not a numerical value you can add 1 to, nor it is a String you can concatenate. What exactly is it you are …

Member Avatar for rubberman
0
235
Member Avatar for Melissa_2

run a Java class from paint? that makes no sense at all. paint is an image processing application, not a coding platform. or did you mean: "is it possible to open paint from my code when I run my code through the command line?"

Member Avatar for JamesCherrill
0
167
Member Avatar for centenond

This question is impossible for us to answer. We have no idea about your background or knowledge. We also have no idea what type of "game" you want to write. Are we talking about hangman 2D, or the next level in 3D shooters, but than on a small screen ? …

Member Avatar for peter_budo
0
207
Member Avatar for moe11223

well ... I would not recommend handing this in just yet. An example: public void SetCardNumber(int c) { System.out.print("Enter card number:"); String cardNum = input.next(); if (cardNum.length() >= 13 && cardNum.length() <= 16) { System.out.println("Valid Card number"); cardNumber = c; } else { System.out.println("Error: Invalid card number"); } } let's …

Member Avatar for stultuske
0
4K
Member Avatar for kxjakkk
Member Avatar for seanj1992

either minimize the code you show, or be more specific of the problem. what is the part of the code we need to focus on?

Member Avatar for Traevel
0
187
Member Avatar for sahar.97

also, what is the logic of your rotation? why doesn't the first element switch places?

Member Avatar for stultuske
0
233
Member Avatar for liphoso

classes can't 'implement' classes, only extend them. Unless of course Car is an interface, not a class. basically, this can be done with (a bit) the same logic as ye olde "roll the dice". in here, the possible values are not "1-2-3-4-5-6", but, let's say you have an array of …

Member Avatar for liphoso
0
216
Member Avatar for Ant695

a small remark, to make it easier: ... int loop_end = 10; for (loop_start < loop_end) { System.out.print ("Enter a number"); Number = keyboardIn.nextInt(); if ( Number >=0) { Positive ++; } loop_start ++; } System.out.print ("Positive numbers were " + Positive + "& negative numbers were " + (loop_end …

Member Avatar for DaveAmour
0
255
Member Avatar for amc2244

well, since you only have instance methods, you'll need to call them through an instance, which you are actually doing `science.addToGradeBook(x);` so I don't really see what your problem is. Can you be more specific as to what it is you need help with?

Member Avatar for stultuske
0
205
Member Avatar for Colin_3

Tekkno: 90% debugging? no offence, but seems to me that if that is the case, you're writing some pretty crappy code. debugging should be held to a minimal, somewhere closer to 0%, that is. of course, that is practically impossible, but if you have a decent analysis, and unit tests, …

Member Avatar for TekknoDraykko
0
177
Member Avatar for london-G

TekknoDraykko: maybe you should re-check the error message. The actual text he is trying to parse into a number is: "jLabel4", that is what the exception message says. longon-G: most likely, you wanted to put a jTextField there, instead of a JLabel, since a JLabel is not really used for …

Member Avatar for TekknoDraykko
0
348
Member Avatar for london-G

apparently, no, it is not. either you are pointing to an other database, or a wrong table, or you misspelled the name of the table. > Column 'salary' not found. means just that.

Member Avatar for london-G
0
199
Member Avatar for shayan_doust

if(parseduserguess > numberToGuess){ result.setText("Number too high!"); }else if(parseduserguess < numberToGuess){ result.setText("Number too low"); } if you think something like this is not working (which in your case would mean that the actionPerformed wouldn't run. (or maybe, that parseduserguess == numberToGuess, just add a simple print statement right before the if …

Member Avatar for TekknoDraykko
0
535
Member Avatar for Niloofar24

Niloofar: you should start by the links James provided you, since they are the official tutorials about how to use sockets, and the official tutorial on learning the language. my advise: start with the second one. > just want to know the primary form, model and shape of the way …

Member Avatar for JamesCherrill
0
925
Member Avatar for gopal_3

I would recommend first learning to use servlets. in the end, you won't be "turning your jsp in a pdf", you'll just write the information that is displayed in your jsp to a pdf file.

Member Avatar for stultuske
0
1K
Member Avatar for sahar.97

Since this seems to be an inner eclipse issue, have you tried asking it on the eclipse community fora?

Member Avatar for stultuske
0
315
Member Avatar for studyabroad
Member Avatar for stultuske
0
76
Member Avatar for jamnoesblunt

and never do this: catch ( IOException e) { } I know, nobody likes to see error messages, but in your case, just because you don't see them, doesn't mean they're not there. you are merely hiding them. at the very least, add a print statement informing you there is …

Member Avatar for stultuske
0
123
Member Avatar for rahulrevolution
Member Avatar for stultuske
0
110
Member Avatar for kavitadc

by writing the code that 'll do all this. Just so you know, in order for the compiler to understand what it is you want your code to do, it is important that you write the correct syntax. Just as if you want us to completely understand what you are …

Member Avatar for Slavi
0
122
Member Avatar for gahhon

also, do realize: this are Java related questions. the answers don't vary if you were to change from IDE. The fact that you are using BlueJ does not impact this at all.

Member Avatar for stultuske
0
247
Member Avatar for prakash2813
Member Avatar for Akshay_4

this is very basic. check [this page](http://en.wikipedia.org/wiki/HTTP_404) for more information.

Member Avatar for stultuske
0
80
Member Avatar for Akshay_4
Member Avatar for XP78USER

Reverend_Jim: no doubt that other OS have (at least) as many holes in it (although I must admit I was a bit surprised to learn so), but Microsoft has over the years managed to p*** off a lot more developers, hackers, script-kiddiez, ... then all the other combined. Next to …

Member Avatar for Lardmeister
0
361
Member Avatar for dendenny01
Member Avatar for Ian_7

I'm a bit at a loss here.. > I have '+abc' and the correct output should be 'ab+c'. If it's supposed to become a postfix, shouldn't it become 'abc+' ? Can you please explain your logic more clearly?

Member Avatar for Ian_7
0
1K
Member Avatar for Trevor_5

take this line `//pottertr_Point pp=new pottertr_Point();` out of comment, and use this instance: for (int i=0; i<3;i++){ s="p"+i; pp.setName(s); pp.setX(getCoordinate()); pp.setY(getCoordinate()); p[i] = pp; System.out.println(p[i].getName()+", coordinate: (" + p[i].getX() + "," + p[i].getY()); } is there a reason why both x and y should have the same value? Remove some …

Member Avatar for stultuske
0
144
Member Avatar for divinity02
Member Avatar for Linh_1

Also: start with the sql part. Without it, your VB scripts won't be able to fetch or store the information anywhere.

Member Avatar for Aslam Mansoor
0
344
Member Avatar for divinity02

`if(typeofcar.EqualsIgnoreCase.("passengercar"))` that's just one of the problems. the correct way is: `if(typeofcar.equalsIgnoreCase("passengercar"))` so, remove the . and change your method call: equals and equalsIgnoreCase, just like any other method start with a lower case.

Member Avatar for divinity02
0
180
Member Avatar for shahera.arafat

from what I remember of your code, the . had a separate part in the actionPerformed, which you should keep. for instance, if you want to block adding the second '.' if ( ".".equals(event)){ if ( T.getText().contains(".")){ // there's already a . in the text, so end return; } // …

Member Avatar for shahera.arafat
0
254
Member Avatar for shahera.arafat

Two remarks: 1. Be more specific. when is it throwing an exception, on which line, during which part of the flow? 2. Don't just copy paste code here that resembles code that you are running, show us the actual code. I know this is not the code you tried, because …

Member Avatar for shahera.arafat
0
301
Member Avatar for Pobunjenik
Member Avatar for Fruits1234

the compareTo should help you there. but, just something I noticed: public boolean equals(Phone other) { return (name == other.name)&&(phone == other.phone); } This is bad code. What you need to do, is override the equals method of the Object class: public boolean equals(Object o){ // code } a second …

Member Avatar for JamesCherrill
0
184
Member Avatar for Rohith_1

Guide you with what? just post what you have so far and explain (clearly and detailled) what is going wrong. There are plenty people here who are willing and able to help, no doubt.

Member Avatar for peter_budo
0
212
Member Avatar for sanketdomal

You do realise this is not 'code-on-demand', right? There are tons of tutorials out there. as for the compiling part, why would this be any different from compiling any other application?

Member Avatar for JamesCherrill
0
191

The End.