- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
Re: I hope this helps, the main stages are as follows: 1. Read In a String literal 2. Create a Calender object 3. Set up arrays for day names and month names 4. Get the current values of the date using the Calender.get(XYZ) methods 5. Based on these values get the … | |
Re: This link may help you to understand how to compile and run java programs. The only thing is I cant find which windows operating system its for, probably windows 98, 2000. However it can be easily adapted to windows xp! [URL=http://homepage.eircom.net/~pugsleypaul/java/setup.htm]LINK[/URL] | |
Re: Ok guys, I kinda have what you are looking for. The only change is that my text file does not contain any brackets or commas i.e (20,20) = 20 20. The x1 coordinate is entered then SPACE then y1 coordinate entered, then TAB then x2 coordinate is entered then SPACE … | |
Hi peeps, I was wondering if anyone could help me. Im using a [B]JEditorpane[/B] to display a html page in. What I want to do is to change the font colour of the html page. I have tried to use the [B]setCaret()[/B] method, but to no avail. Anyhelp would be … | |
Re: The link only contains a picture! More information would be useful! | |
Re: I am not allowed to write the whole program for you, however I can help you out in certain areas(more to do with actual programming). It is up to you to decide on what kind of game to make. I would start off by creating a spider/brain storm diagram with … | |
Re: Ok , you want something like this: Class StringProg has the 2 methods you require: --------------------------------------------------------------- public class StringProg { String s; int count = 0; //constructor public StringProg(String sIn) { s = sIn; } //method to diplay string public void displayString() { System.out.println ("\nYour String: " + s); } … | |
Re: Hi rita, I can recommend two books to purchase : [B]1. Java In Two Semesters[/B] [I](ISBN: 0077098048)[/I] This book is excellent for starters, I would highly recommend this book! It may take time to complete the exercises in the book, but its all worth it at the end. I would … | |
Re: [I]freeMemory() - [/I] [B]Returns the amount of free memory in the Java Virtual Machine[/B] [I]totalMemory() [/I] [B]Returns the total amount of memory in the Java virtual machine[/B] Click on the java sun link for more information: [URL=http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html]Java Sun Link[/URL] Hope that Helps! | |
Re: Are you going to type the 2 numbers in? Or do you want them to be generated? | |
Re: This code should help you out....... The key points are : 1. Using Math.Random class ------------------------------------------ //generate 2 random numbers between 1-6 int rand1 = (int) (Math.random() * 6) + 1; int rand2 = (int) (Math.random() * 6) + 1; //calculate the total int total = rand1 + rand2; //print … | |
Re: I have posted something similiar to what you require, follow the link: [URL=http://www.daniweb.com/techtalkforums/thread8559.html]LINK [/URL] That should help ya! | |
Re: Ok, the String class is a very important tool in java. Make yourself famaliar with it. Go to this Weblink to revise some of its properties. [Weblink](http://docs.rinet.ru/WebJPP/ch10.htm) Your code should be simliar to this.... ------------------------------------------------------------------------ public static void main(String[] args) { /*1) Find the 5th caracter in the string " … | |
Re: Ok we have three classes = *Box*, *BoxVector* and *BoxTest*. The Box class simply creates a Box object: //create a Box object, and have return methods to return values class Box { private double width; private double height; private double length; //constructor public Box(double widthIn, double heightIn, double lengthIn) { … |