4,084 Posted Topics

Member Avatar for redflame777

[QUOTE=redflame777;697840]I will work on it some more to see if I can get it right this time and better understand what I need to do and why. Java has proven to be extremely hard for me. Thank you Alex for your explainations and suggestions. Someone giving me explainations is a …

Member Avatar for redflame777
0
106
Member Avatar for cproud21

no offence, but I don't think you really got the point in neither of your constructors should be an int as parameter your task is to use a TimeAT object (which you're not doing) so: you'll have a class that hase: [Code=java] private TimeAT time = null; // or new …

Member Avatar for javaAddict
0
131
Member Avatar for letlet_pogs

the first source for all such answers [URL="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html"]API[/URL] (about JOptionPane, that is :) )

Member Avatar for letlet_pogs
0
76
Member Avatar for countrygirl1970

the wisdom of the ignorant???? 1. the problem was fixed the day before you posted this 2. you are just formatting the data, with the chance you'll either loose data or have to write lots more code. take a look at the sollution provided by VernonDozier, and you'll see that …

Member Avatar for countrygirl1970
0
243
Member Avatar for Kamal_Java

by comparing the values on which you need to sort and implementing that comparisation in (for instance) a bubble-sort method

Member Avatar for stultuske
-1
156
Member Avatar for cardanadam

in my opinion, why would you do that?? unless you are going to try to get the bandwith from every cable your data 'might' get transferred over. and, as you propably do know, sometimes servers fail, meaning that the data has to take another way, which change the result of …

Member Avatar for stultuske
0
77
Member Avatar for tonymate

[QUOTE=tonymate;700894]Hi Jasimp, I am not that new!! new!! to Java and I was not asking for people to do the work for me. I guess I provided incomplete statement regarding the program for reason of privacy nature of the program. I have been working on the program for awhile, but …

Member Avatar for javaAddict
0
131
Member Avatar for blue_moon

[QUOTE=blue_moon;700650]Write a method that converts its String parameter so that letters are written in blocks five letters long. For example, consider the following two versions of the same sentence: Plain: This is how we would ordinarily write a sentence. Blocked : Thisi showw ewoul dordi naril ywrit easen tence p.s....still …

Member Avatar for stultuske
0
287
Member Avatar for Kamal_Java

one suggestion: try first, this looks like a basic question to test if you understand Object Oriented programming or not to give you an idea how to solve this quickly: all classes can be stored in an array of their superclass (the class they inherit from) and all classes in …

Member Avatar for stultuske
0
2K
Member Avatar for Atif Azmi

[QUOTE=javaAddict;698636]I thought that he was trying to understand how the switch statements works. But now that you mentioned it the question looks a lot like a question from a test[/QUOTE] not really... looked like he was even to lazy to copy the entire assignment as given to him.. as an …

Member Avatar for stultuske
0
96
Member Avatar for chenmanalo

[QUOTE=chenmanalo;698596]:'( please help.... can you give me a full program of a game using java? i don't know it... please give me some idea... give me game program, the important is it is a game... please thank you and God bless!![/QUOTE] to answer the only question you've asked: why, yes, …

Member Avatar for stultuske
0
79
Member Avatar for dnmoore

[QUOTE=dnmoore;698410]no its not complied yet my complier isnt working so im kinda relying on my code working until i can bring it to class and run it. [/QUOTE] that's one lazy-ass compiler you've got there. propably means you haven't installed one yet. and what you said in your earlier posts, …

Member Avatar for stultuske
0
526
Member Avatar for adiel224

[QUOTE=adiel224;697636]public void update(....){ //complete here .....[/QUOTE] [code="java"] public void update(...){ //here completed .... [/code]

Member Avatar for stultuske
1
85
Member Avatar for PRob99

[QUOTE=PRob99;697228] Also, I want to be able to enter a negative number (not just a -1) to stop the loop. Would it be possible to do this statement?: while (grade !<=-1) Thanks in advance![/QUOTE] try [code="java"] while (grade >= 0) [/code]

Member Avatar for kingvjack
0
165
Member Avatar for leverin4

it would also come in handy to provide us with all your code, for instance the methods read and write that you use. maybe a hint : try using switch statements instead of a number of if's, if you know that all the tests are on the same integer. [Code="Java"] …

Member Avatar for stultuske
0
83
Member Avatar for tanha

what do you mean by: the LoginForm.java closes? do you mean that it's a JFrame that you want to disappear? in that case, use eiter the hide() or dispose() method for the LoginForm frame, and show the new one

Member Avatar for stultuske
0
1K
Member Avatar for Panarchy

lots and lots of coffee and good luck.. you can learn the basics of Java in a month, but to completely 'learn' Java on such short period would require a whizz-kid as a student you might want to check out the sticky post on top of this forum, the one …

Member Avatar for masijade
0
239
Member Avatar for brain damaged

could you put the code between [ CODE] [ /CODE] tags to make it more readable and also give the errors you are getting? might make it a lot easier to actually help you out with this one

Member Avatar for jwenting
0
168
Member Avatar for ahtide24

[QUOTE=masijade;691449]he still had to do any of it himself? ;)[/QUOTE] revolutionary thoughts :)

Member Avatar for kalyan_au_cse
0
137
Member Avatar for VirusTalker

first of all, you forgot to use code tags, which makes this very difficult to read I sujest you check the line where the exception occurs, check whether or not you've forgotten a test on it and if you still can't find it, put your code back here in a …

Member Avatar for kalyan_au_cse
0
144
Member Avatar for phintastic

for using the Scanner class, don't you need to make an import of the class? [CODE]import java.util.Scanner;[/CODE] concerning your second question: the == and != are indeed not the right way to check whether two Strings are equal or not. a String is an Object, and should be compared using …

Member Avatar for Alex Edwards
0
1K
Member Avatar for knarffrank

you are calling this constructor, the default constructor: [CODE]compAdd c1 = new compAdd();[/CODE] but you have only provided a constructor which takes an argument (a String object) the compiler will create a default constructor for you, so you don't have to write it, but only if it doesn't find any …

Member Avatar for stephen84s
0
122
Member Avatar for newtechie

just read the file, line by line, and add the value of that line to your array just a bit the logic to follow, not 100% correct or tested code :) [code] line = readNewLine(); ArrayList values = new ArrayList(); while (line != null){ values.add(line); line = readNewLine(); } [/code] …

Member Avatar for newtechie
0
120
Member Avatar for Coyboss

if you want to declare the variable private(,public,protected) and static, you must declare it for the class, not inside a method try this: [code='java'] import com.ridgesoft.intellibrain.IntelliBrain; public class test{ private static String myName = "testing 123"; public static void main (String args[]) { System.out.println(myName); } } [/code] [QUOTE=Coyboss;683562]I am working …

Member Avatar for Coyboss
0
277
Member Avatar for warlock300300
Re: Help

we're more than willing to help, but as both the rules of this forum and your question state, we are here to HELP, not create it for you. the look of your question suggests that it is an assignment of a Java-course of some sort: you 'll not help yourself …

Member Avatar for Ezzaral
0
83
Member Avatar for RituNimitNayal

if I'm not mistaken, you want to declare a String, containing several substrings, separated by an espace. after this, you would like to find the longest of those substrings. one option could be, storing the String in a StringBuffer, setting the space as a token, and check where the difference …

Member Avatar for Chaster
0
96
Member Avatar for manofjava

the best you can do, if you intend to use this forum, is to read the sticky thread, then to try to write some methods on your own and see if you can get them compiled and running. if you don't completely understand the working, or you get error-messagess, than …

Member Avatar for stultuske
0
135
Member Avatar for mayur_kulkarni

wouldn't know how to do something like that, since when you're working in prompts, you'll propably have different applications (even when it are different instantiations of the same app) running maybe you could use files that store the data you enter/use, and have threads in the program check for changes …

Member Avatar for stultuske
0
100
Member Avatar for andr3a

[QUOTE=andr3a;673793]Any solutions?[/QUOTE] realizing Java and JavaScript are not the same would be a nice start ...

Member Avatar for peter_budo
0
91
Member Avatar for sandawg

why do you perform this if: if ( employeeName == "stop" ) { System.out.println ( "Thank you, come again" ) ; } we allready know the employeeName at that point is "stop", otherwise you would still be in the loop

Member Avatar for sandawg
0
256
Member Avatar for liam_page1

while (list.hasNext()){ System.out.println("been lazy? :P"); } I do hope you know the logic in finding a max of a number, eh?

Member Avatar for stultuske
0
100
Member Avatar for lich

it's no use for us to help you with code, if you go and use netbeans for the gui while your teacher told you to use jcreator. it'll use him exactly two seconds to recognize it as generated code, so you'll just hand him a reason to fail you. btw, …

Member Avatar for jasimp
0
156
Member Avatar for palavi

since it is going to be a standalone non-web based application... why are you considering using html and applets? a Swing application would do for what you're required to write

Member Avatar for palavi
0
99
Member Avatar for hapax

if it's web development you 're looking for: if you don't understand jsp/jsp and servlets, don't begin with struts or ejb (since they use, gues what?? indeed, jsp and servlets :) ) a good place to start with Java would be to read the sticky post in this forum

Member Avatar for stultuske
0
102
Member Avatar for twgood

could you use the code tags a bit better? it's easier to read if we know where one file ends an the other begins

Member Avatar for sciwizeh
0
96
Member Avatar for bloody_ninja

if you have no experience what so ever, maybe the best approach would be to figure out what OO is all about. you're uncle may have provided you with all the software you need, but so do Sun combined with any which OS you're using. if you have your JDK …

Member Avatar for bloody_ninja
0
180
Member Avatar for e_velkova

you do realise that JavaScript and Java are not the same thing, do you?

Member Avatar for Thirusha
0
85
Member Avatar for karthikvel

asking us to support and help you with your problems is one thing, but you'll need to have some problems for us to help you with first. just search for a basic tutorial on how to 'get started with Java' and go ahead. you'd be surprised how much more you …

Member Avatar for stultuske
0
81
Member Avatar for kselvakumar_82

well, what you're using appears to be JavaScript, not Java. I would use Java and add the data to the session, to retreive it from the session later on

Member Avatar for kselvakumar_82
0
137
Member Avatar for Aamit

you're the one who were given the task, so I think you know that better than us. for instance, what you state here, says nowhere that there is a database involved. if not, why would you want to use jdbc??? I don't know what limitations were set for (for instance) …

Member Avatar for javaAddict
0
73
Member Avatar for D boss

after five years, I 'm pretty sure the OP wasn't checking anymore, especially since he already stated that Ezzaral's post "really helped", loosely translated: solved the problem. so ... why exactly did you revive this thread?

Member Avatar for D boss
0
578
Member Avatar for hazelle

[QUOTE=hazelle;562124]this my proj.. i need to do a program that will [/QUOTE] as you said: it is your project and you need to do it. what else did you expect? this is a forum to learn by getting help where you're stuck, not buyJavaProjOnline.com

Member Avatar for stultuske
0
107
Member Avatar for clueless101

[QUOTE=clueless101;562776] [code=Java] public static void main(String [] args) throws IOException { } [/code] [/QUOTE] also, don't do that. there is nothing above the main method in the any application, so where would you throw it to? you'd better replace that by [code=Java] try{ // what you want to happen } …

Member Avatar for stultuske
0
133
Member Avatar for Rashul
Member Avatar for Littlen

could be the same reason Addict already mentioned.. the fact that the names look alike, don't always indicate they are linked to each other, or can be casted to one another

Member Avatar for Tenk
0
282
Member Avatar for mefroggy3

[QUOTE=mefroggy3;560548]Modify the Payroll Program so that it uses a class to store and retrieve the employee's data[/QUOTE] since I do not detect a class Employee in your post, I take you have just given us your assignment as it was handed out to you along with the question: can you …

Member Avatar for mefroggy3
0
8K
Member Avatar for a_iyer20

"\t" will automatically take a tab, so if you need less space open, you shouldn't use that. you may try by replacing the "\t" with a couple of spaces, or try formatted output.

Member Avatar for masijade
0
11K
Member Avatar for Pavan Kalyan V

[QUOTE=Pavan Kalyan V;560655]Guys please please help me in this..... Write a program that inputs two DFS's D1,D2 and outputs whether L(D1) = L(D2) in Java... Thanks in Advance....![/QUOTE] I'm sending all the moral support you need to open your books and write your program. how's that for helping out?

Member Avatar for stultuske
0
93
Member Avatar for bob507

if you're allready familiar with the java language, I'd recommend to take a look into the use of servlets

Member Avatar for stultuske
0
77
Member Avatar for fufu123

[QUOTE=gururagavendra;558820]My name Guru, Could you tell me your code[/QUOTE] the one for my bank account? didn't think so. otherwise, what code are you requesting in this thread? if it's free java code you're after, you might first want to check the forum rules, before you get the feeling that people …

Member Avatar for new_2_java
0
152

The End.