4,084 Posted Topics
Re: [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 … | |
Re: 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 … | |
Re: 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 :) ) | |
Re: 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 … | |
Re: by comparing the values on which you need to sort and implementing that comparisation in (for instance) a bubble-sort method | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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, … | |
Re: [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, … | |
Re: [QUOTE=adiel224;697636]public void update(....){ //complete here .....[/QUOTE] [code="java"] public void update(...){ //here completed .... [/code] | |
Re: [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] | |
Re: 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"] … | |
Re: 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 | |
Re: 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 … | |
Re: 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 | |
Re: [QUOTE=masijade;691449]he still had to do any of it himself? ;)[/QUOTE] revolutionary thoughts :) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: [QUOTE=andr3a;673793]Any solutions?[/QUOTE] realizing Java and JavaScript are not the same would be a nice start ... | |
Re: 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 | |
Re: while (list.hasNext()){ System.out.println("been lazy? :P"); } I do hope you know the logic in finding a max of a number, eh? | |
Re: 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, … | |
Re: 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 | |
Re: 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 | |
Re: 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 | |
Re: 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 … | |
Re: you do realise that JavaScript and Java are not the same thing, do you? | |
Re: 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 … | |
Re: 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 | |
Re: 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) … | |
Re: 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? | |
Re: [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 | |
Re: [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 } … | |
Re: check the Java api's for the Scanner class | |
Re: 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 | |
Re: [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 … | |
Re: "\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. | |
Re: [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? | |
Re: if you're allready familiar with the java language, I'd recommend to take a look into the use of servlets | |
Re: [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 … |
The End.