I was given a programming exercise which calls to: "Write a program to create a file named Exercise09_19.txt if it does not exist. Write 100 integers created randomly into the file using text I/O. Integers are separated by spaces in the file. Read the date back from the file and … |
|
[CODE]import java.io.*; public class Test { public static void main(String[] arg){ Console console=System.console(); String chessPiece=""; int rowEnd=0; char columnEnd = ' '; System.out.println("what piece do you want to move?"); chessPiece=console.readLine(); System.out.println("where do you want to move it to?(type column letter)"); String input=console.readLine(); columnEnd=input.charAt(0); System.out.println("where do you want to move it … |
|
Hi. i get this blue screen when starting my PC very often. Here are my PC specs (report from everest) [QUOTE]Operating System Microsoft Windows XP Professional 5.1.2600 (WinXP RTM) Date 2010-08-25 Time 19:24 --------[ Summary ]----------------------------------------------------------------------------------------------------- Computer: Computer Type ACPI Uniprocessor PC Operating System Microsoft Windows XP Professional OS Service … |
|
Hi, i would be grateful for a solution or some explaining. My example is that i have a controlled spaceship. here is userinterface: 3 - planet from which is starts, 0.5 and 0.5 the speed of the ship [CODE=java]public void handleBtnLaunchFPSpaceShip() { this.controller.launchFPSpaceShip(3, 0.5, 0.5); }[/CODE] my controller class: [CODE=java]public … |
|
Please help me to create a program that will demonstrate the following using an array...... 1.Adding of objects 2.Deleting of objects 3.Updating of objects 4.Displaying of objects.. An interactive program using console/gui... thanks...hope you can help me...just send the code, please help me.... |
|
the few things that i cant understand are inside the code.. The code should give out the car type, model type ,serial number. and the number of cars.. [CODE]public class part5{ public static void main(String[] args) { System.out.println(Car.getCounter()); Car[] cars =new Car[5]; for (int i = 0; i < cars.length; … |
|
hello can you help me i don't know how to make this method remove(Node n),in SinglyLinkedList can anyone give a hand on this.. thank you in advance.hoping for your positive responds... [CODE] public class SinglyLinkedList { private Node head; private Node tail; private int size = 0; public Node add(Node … |
|
[url]http://www.gasuinfo.org/planetarysystem/index.html[/url] [CODE]<html> <head> <title>Planetary system</title> </head> <body> <p> Applet</p> <p align=center> <applet code="applet.class" archive="planetary.jar" width="900" height="600" > </applet> </p> </body> </html>[/CODE] if i run my applet from eclipse, then it works fine. in command line i wrote [I]jar cvf0 planetary.jar *[/I], jar file was created and i uploaded it and … |
|
Hi all, I want to display the Number values instead of String. For example, if the User gives the Input as fifty, i displayed the Output as 50. Is any existing method in Java to call for displaying Numbers? Or how can i solve this problem? Thanks in advance and … |
|
I have ordered points(x,y) for a route and i got a method optimize which removes consecutive points which distance between them is less than delta (delta=3). The first rule tells that if p1 and p2 distances are lower than delta, then remove p2 from my route. Second rule is same … |
|
So i've found an example of how to use Semaphore and made my code into there for Readers-Writers problem. What it must do, that it has 1 book, only 1 writer can write a new line there and while he is writing, no1 else can access it. When writing is … |
|
My every figure has centre point with coordinates x, y tips number radius which shows tip range from centre point. i have a drawingRule method which is for every shape i need to draw. [CODE]package business_logic; import java.awt.Color; import java.awt.Graphics; import javax.swing.JPanel; @SuppressWarnings("serial") public class Vector extends JPanel { public … |
|
im creating little program which produces cars, tractors and mopeds. car has 4 wheels and 4 cilinder engine, tractor has same, and moped has 2 wheels and 1 cilinder engine. this is what i have at the moment. next thing i need to do that with 2 factories.. home factory … |
0 Reputation Points