13 Posted Topics
though printed back integers are not sorted
try this code to check if your eclipse supports it... my eclipse doesn't support console also. [CODE]package console; //import java.io.*; public class Console { public static void main(String[] args) { java.io.Console console = System.console(); if (console == null) { System.out.println("unable to obtain console:("); return; } String name = console.readLine(); System.out.println(name); …
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 …
probably this forum users won't do for you your homework. forum is for asking hints or suggestions for your already written code if you're stuck there somewhere in your code or get some error. firstly you should write some code yourself and if you're stuck somewhere then come here with …
[CODE]class Car{ String [COLOR="red"]name[/COLOR]; String [COLOR="red"]model[/COLOR]; private static int counter; int serialNumber; public Car(String [COLOR="Green"]name[/COLOR], String [COLOR="Green"]model[/COLOR]) { // why is the Car method has public before it? why the method has a capital letter ? [COLOR="red"]this.name[/COLOR] = [COLOR="Green"]name[/COLOR]; [COLOR="red"]this.model[/COLOR] = [COLOR="Green"]model[/COLOR]; counter++; serialNumber=counter; // why serial number doesnt have …
[CODE]/** * Delete a specified item from the list, if that item is present. * If multiple copies of the item are present in the list, only * the one that comes first in the list is deleted. * @param n the item to be deleted * @return true if …
[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 …
i didn't quite get your last post u mean when somebody types "fifty", then output is 50 ? [CODE]import java.io.*; /** This class demonstrates how to read a line of text from the keyboard */ class ReadLine{ public static void main(String[] args) throws IOException{ String CurLine = ""; // Line …
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 …
The End.
skyzer