This is for my final year project.I would like to read values in from a file such as this NAME : a280 COMMENT : drilling problem (Ludwig) TYPE : TSP DIMENSION: 280 EDGE_WEIGHT_TYPE : EUC_2D NODE_COORD_SECTION 1 288 149 2 288 129 3 270 133 4 256 141 5 256 157 Ignoring the first number in the sequence but using the oher two.Can someone please help.Im desperate and my time is running out.Thanks you could save my life......
Hi all... Im trying to build an application which reads data from a file (TSPlib) and uses that data as points in my algorithm. IM LOST. I have loaded the data and seperated the values in the data into co-ordinates for my algorithm. My next step is to create the ant which will travel through these co-ordinates one at a time following the travelling salesman problem. The ant must be cloneable and I want to place each ant (ant = no of points from file) randomely on a co-ordinate.Could someone please please please give me an idea where to go next...even some basic or pseudo code...Thanks
Hi all. Im reading a file with a button on my application using a fileChooser. I need to use this file to parse the info stored inside. can anyone tell me how to use the file selected to call the method.Im having a problem with the type File and the type String. I need the type String but I have the type File. Heres a snippet of code:
Hey all, Im really stuck.Im trying to select a file and read its data.I want to seperate this data out so I can assign it to variables. I dont know if i need input streams???.Could someone please help me......
A rectangle is created in the centre of the window and filled in colour.I may use any click to draw and drag a line on the screen.A line will only be remembered as it is released across the varierents of the rectangle.The line is clipped in size to remember the piece within or partially within the rectangle
Im using a stored procedure to test data stored in my oracle database.I havnt access to the database other than through the java application. I was testing the oracle database seperatly but im getting an error.My procedure is returning more data than I have called.Is there a way to loop through and display all the data.Im trying to display a members orders.
DECLARE me Members.emailAddress%type; mfn Members.firstName%type; mln Members.lastName%type; mp Members.passwd%type; orid Orders.orderId%type; ord Orders.dates%type; ors Orders.status%type; statuss boolean;
procedure get_members_details( member_emailAddress in Members.emailAddress%type, member_firstName out Members.firstName%type, member_lastName out Members.lastName%type, member_passwd out Members.passwd%type, order_orderId out Orders.orderId%type, order_dates out Orders.dates%type, order_status out Orders.status%type, statuss out boolean) is begin select firstName,lastName,passwd,orderId,dates,status into member_firstName,member_lastName,member_passwd,order_orderId,order_dates,order_status from Members,Orders where Members.memberId = Orders.memberId and Members.emailAddress = member_emailAddress; statuss := true;
exception when no_data_found then statuss := false; end; begin me := 'email@example.com'; get_members_details(me,mfn,mln,mp,orid,ord,ors,statuss); if (statuss) then dbms_output.put_line(me || ' ' || mfn || ' ' || mln || ' ' || mp || ' ' || orid || ' ' || ord || ' ' || ors); else dbms_output.put_line('Member' || me || 'not found'); end if; end;