318 Posted Topics
Re: First of all, your closing braces are not there, So I don't even know how it is compiling. So fix that, it is probably your problem. [CODE]class printing{ public static void main(String[] args){ for(int i=1; i<=10; i++) { for(int j=1;j<=5;j++) { System.out.print("@"); System.out.print(""); } } } }//you didn't close the … | |
Re: >>Do I have to buy a "program/software" that makes programs? If so what are some of the basic ones/ or well known ones? Im guessing they are pretty expensive? [b]There are many free programs out there called an IDE(integrated development environment) and also some IDE's which require you to buy … | |
Re: Nobody will do the assignment for you. Attempt it yourself, and if you still require help, paste what you have so far here. | |
| |
Re: [QUOTE=kumpul101;1326512]hey there! i have this code... [CODE]import java.io.*; public class charat{ public static void main (String args [])throws IOException{ BufferedReader in = new BufferedReader (new InputStreamReader (System.in)); System.out.print("Enter First Name: "); String fname = in.readLine(); System.out.print("Enter Middle Name: "); String mname = in.readLine(); System.out.print("Enter Last Name: "); String lname = … | |
Re: So what is your error? Or what is going wrong? | |
Re: It seems you want the btnOk button to bring you to a new 'menu' with the 'logout'etc. You dont have a frame in the OptionWindow class that I can see. You need to create a frame and add all those things to it. Then its just a matter of hiding … | |
Re: I understand completely, what you need to do first is Give [b]yourself[/b] an assigment that you [b]know[/b] you should be able to complete with what you know so far. If you practice what you have learnt in your own way it is much more fun to program and you will … | |
Re: churva churva, can you please tell me where/how you are learning java? Are you self studying or being tutored? Or are you in an institute? | |
Re: You are creating a separate array for each variable, You could do that much easier by creating another class called Employee with age,firstname,lastname,address as the arguments. e.g. [code]Public class Employee(age,empFirst,empLast,empAddr) { }[/code] This way, you would only need to make 1 Array, but this array would be an array of … | |
Re: Stab in the dark here but would [code] String num; for (i=1; i < 6; i++) { if ("num"+i < 0) neg = neg + 1; if ("num"+i == 0) zero = zero + 1; if ("num"+i > 0) pos = pos + 1; }[/code] would this work? | |
Re: If you are new to java, and have not covered GUI's yet, then one of the easier options of doing a menu is with a switch. First thing is first, you need to create a class from which you can create an instance of the object, until you have that … | |
Re: It seems you are interested in making a flash based website. [url]http://www.w3schools.com/flash/default.asp[/url] This is a very good website for beginner web developers. It covers all aspects of web development. Good Luck! | |
Re: Try using the repaint() method. Google it for examples. | |
Re: There is no point in pouring all your ideas out onto this forum, where I am sure there are many qualified and capable people who will use the idea for themselves. You should do what was said above, try to get your idea as polished as you can. Be that … | |
Hello everyone, just want to introduce myself. I am in the 2nd year of a games development course in Ireland. So far I have basic knowledge in C++, C#, Java, Javascript and HTML. I Joined this site in the hope I can learn a lot from the experts and study … | |
Re: I dont think it is necessary to have 2 separate scanners. But anyway, what you are doing there seems to me like you are asking if a scanner variable called 'one' is equal to a number which doesn't make sense. I'm not 100% sure but maybe try: Instead of having … | |
Re: The only way that sentence makes sense is: I want the value assigned to form1, in the start method, to get called in main but not call the whole method. I could be way off though as it sounds.... ![]() |
The End.