Help needed in executing pl/sql programs
hi all
iam new to PL/SQL programming
i have installed oracle 9i
iam trying to practice some sample pl/sql programs
i have opened oracle 9i and typed these commands
sql>ed sum
then a notepad opens where i type my pl/sql program and save it and then return back to oracle 9i and type this
sql>@ sum
then my pl/sql program gets executed.......but iam not getting any output
its comig as procedure implemented succesfully
is it compulsory to open notepad to execute pl/sql progams or we can direclty type the programs in oracle 9i
please help in this matter ASAP
Regards
Suresh
Yes, you can type the program directly at the SQL prompt, but editing will be a bit difficult.
You should use some good editor that allows you to edit properly and then run like you did.
You need to do:
SQL> set serveroutput onbefore running your program to see dbms_output messages.
Similar Messages
-
Help needed in executing SQL query...
Hi,
I am very new to JDeveloper. Curently i am tryin to execute an SQL query from the BPEL process, the output of the query is to be mapped to a variable field from a target xsd file. the query is fairly simple, like
SELECT emp
FROM emp_table
WHERE emp_id=123
The target field, namely "employee", is an element from the xsd file. I tried using Java embedding activity to connect to the db and execute the query through a piece of Java code, but couldn't find a way to assign the output of the query to the field. however lately i also discovered the Database Adapter services which helps me create a database connection, but still i am not sure as of how to handle and map the output of the query to the variable field.
Can somebody please help me in resolving the issue either through Java Embed activity or Database Adapter services??
Thanks in advance
AnjanAnjan,
I suggest you try the [url http://forums.oracle.com/forums/forum.jspa?forumID=212]BPEL Forum
John -
Help needed in executing the java/jsp program from UCM .
Hi ,
I have a .jsp program running in my Jdeveloper which when executed pops a window to browse and select files and with few custom options .
But i want to execute that Program from within UCM (create a new jsp page in UCM OR provide link ? i am not sure .... ) , could anyone help on how i can execute/run the program from UCM ?
thanks in Advance
PlaxmanIf your jsp makes use of jars you may want to look into using a WAR instead. You can check the WAR into content server and there is even a link on the administration page for JSP Web App Admin. Treating the JSP(s) and jar(s) as an entity may be a more successful path for you.
You can find some jsp examples and ever a war example in this directory: <install root>\samples\JspServer
And the briefest of help about that stuff here: [http://localhost/idc/help/wwhelp/wwhimpl/js/html/wwhelp.htm|http://localhost/idc/help/wwhelp/wwhimpl/js/html/wwhelp.htm] -
How to create and execute PL/SQL program or Procedure from Java (JDBC)
hi all,
user will enter the Pl/Sql program from User-Interface. that program has to be create in DB and execute that.
due to some confusions, how to execute this from Java, i (user) entered the same logic through a Procedure.
my Java code is
Statement st = con.createStatement();
Statement.execute(procedure_query); // procedure name is myPro
CallableStatement cs = con.prepareCall("{call myPro}");
(as given in SUN docs - http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html)
but its not creating the procedure.
and i tried to run a procedure (which is already created) with CallableStatement, and this is also not working.
how to get this.
thanks and regards
pavanHi,
SInce the PL/SQL block is keyed in dynamically, you probably want to use the anonymous PL/SQL syntax for invoking it:
// begin ? := func (?, ?); end; -- a result is returned to a variable
CallableStatement cstmt3 =
conn.prepareCall(“begin ? := func3(?, ?); end;”);
// begin proc(?, ?); end; -- Does not return a result
CallableStatement cstmt4 =
Conn.prepareCall(“begin proc4(?, ?); end;”);
SQLJ covered in chapter 10, 11, and 12 of my book furnish a more versatile dynamic SQl or PL/SQL mechanisms.
Kuassi
- blog http://db360.blogspot.com/
- book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html -
Help needed in executing a remote batch file
I need to execute a batch file which is located on a remote machine through my machine. I have no idea to go about with. Please can someone help me out with can be used to execute the remote bat file. I am at present using Runtime.exec() to execute it on my machine.. But i cant use it to execute teh bat file on teh remote machine.Please help
Below is an example server that would run on the remote host. You can connect to it using telnet from DOS prompt, it takes a Y/N to run your command in the cmd variable. I haven't included code for a client as it's really not needed for the example below.
Change the cmd and port variables to what you need. You may need to setup firewall rules to allow your chosen port.
Once it's running, you can test it by using "telnet localhost 1234" on your machine, localhost would obviously become the remote computer's hostname or IP.
I am incredibly new to Java (using the forums to learn bits), so excuse any bad coding practises, I'm sure people will point them out.
Keep in mind that this is totally insecure, so if you're using it on an untrusted network, you may want to look into encryption and providing some kind of password authentication, that, for the moment is out of my league.
Screenshot here.
import java.io.*;
import java.net.*;
class RemoteServer {
public static int port = 1234; // Port to listen on
public static String cmd = "C:\\Test.bat"; // Command to run
public static void main(String[] args)
System.out.println("Waiting for connection...");
try {
/* If you want the server to run forever, uncomment the while
loop */
// while (true)
startServer();
} catch (IOException e) {
e.printStackTrace();
System.exit(1);
/* Starts the server */
private static void startServer() throws IOException
ServerSocket server = null;
Socket client = null;
String input;
try {
server = new ServerSocket(port);
} catch (IOException e) {
System.err.println("Unable to list on port " + port);
System.exit(1); // Can't listen, nothing else to do
try {
client = server.accept();
System.out.println("Client connected... awaiting Y/N");
} catch (IOException e) {
System.err.println("Unable to accept connection.");
System.exit(1);
PrintWriter out = new PrintWriter(client.getOutputStream(), true);
BufferedReader in = new BufferedReader(new InputStreamReader(
client.getInputStream()));
out.println("You are connected, ready to launch command: <y/n>");
while ((input = in.readLine()) != null)
if (input.equalsIgnoreCase("y"))
Runtime rt = Runtime.getRuntime();
rt.exec(cmd);
out.println("Command executed... disconnecting.");
System.out.println("Command executed... disconnecting client.");
break;
} else if (input.equalsIgnoreCase("n")) {
break;
} else {
out.println("Please enter Y/N.");
out.close();
in.close();
client.close();
server.close();
} -
Help needed with Express and SQL Dev
Recently was asked to make a sql server application work with Oracle. I have never worked with Oracle products and no one in my small shop has either. I downloaded the Express 10g onto a virtual machine on my dev server and oracle SQL Developer locally. I have no idea how to connect to the Express db on the prod server using sql developer. I have tried Basic and TNS connection types and all the errors are very cryptic. Any help is appreciated. Do I need to install anything client side to connect to the server?
I figured it out. I had to use the Basic connection type and I DL'd the J2EE .
Edited by: jt_stand on Sep 25, 2008 10:51 AMHad to use the Basic connection type and get the right combination of options. I can now connect to my remote Express server with my local sql developer program.
-
Help needed in building a sql query
Hello,
I am using Oracle 10g db.
I have 3 tables table1 and table2 and table3
I am writing one sql query which is like
select table1.a a1,(select distinct b from table2,table3 where table2.id=table3.id and table1.id=table2.id) b1
from table1
Now the b1 value may give more then 1 values so when i am trying to execute the query its giving me error.
What i would like to have is if it gives returns more then 1 value then add that value as a new column means if b1 gives like abc and def as values.
Then i want the sql to return like
acolvalue abc def as a single row.
Is this possible to do?
ThanksHello,
The approach which i took is i wrote a function which gives me the b values , sseparated.
Then i am building a outer query considering the max of b so i just found there are max 10 values which one row is showing.
select b11,b12,b13,,,b10
from (
select table1.a a1,func(select distinct b from table2,table3 where table2.id=table3.id and table1.id=table2.id) b1
from table1)
but now i am facing problem like the value of b1 is a,b,c
i want to use the substr and instr function to get
a as b11
b as b12
c as b13
can anyone pls help me out to write a query? i am getting b11 but other values are somehow not coming.
for b11
i used
substr(b1,1,instr(b1,',',1,1)-1)
Thanks -
Help needed on writing a SQL query
Here is my table that shows records of 3 ORDER_ID (10, 20 and 30). All I need to do is, pick the first record of each order_id and check the event_id, if the event_id is same for the next record, ignore it, else show it and ignore rest all records for that order_id. This way my query output will show only two records for each ORDER_ID. Query should produce records that are in BOLD in the sample data. (Database - 11g)
Thanks for your help in advance
ORDER_ID EVENT_ID EVNT_DATE STATE_CODE
*10 16937555 20100212 COMPLETE*
10 16937555 20100212 ACTIVE
*10 16308004 20100129 OCCURRED*
10 16131904 20100125 ACTIVE
10 16270684 20100128 OCCURRED
10 14899116 20091213 ACTIVE
10 16085672 20100123 COMPLETE
10 16085673 20100123 OCCURRED
10 14899119 20100123 COMPLETE
10 14899120 20100123 COMPLETE
*20 17134164 20100223 COMPLETE*
20 17134164 20100223 ACTIVE
20 17134164 20100223 STARTED
*20 15479131 20100105 OCCURRED*
20 15478409 20100105 OCCURRED
20 15478408 20100105 ACTIVE
20 15119404 20100105 COMPLETE
20 14346123 20091129 ACTIVE
20 15467821 20100104 OCCURRED
20 14346125 20091216 COMPLETE
20 14346126 20091215 COMPLETE
20 14346126 20091214 COMPLETE
*30 18814670 20100412 COMPLETE*
30 18814670 20100412 ACTIVE
*30 18029509 20100320 OCCURRED*
30 16853720 20100211 ACTIVE
30 17965764 20100319 OCCURRED
30 16386708 20100211 COMPLETE
30 16804451 20100211 OCCURRED
30 15977897 20100121 ACTIVE
Edited by: sarvan on Aug 12, 2011 7:16 AMtry this [Not fully tested]
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Elapsed: 00:00:00.00
SQL> SELECT *
2 FROM (SELECT order_id, event_id, evnt_date, state_code, next_evntid,
3 ROW_NUMBER () OVER (PARTITION BY event_id ORDER BY NULL)
4 AS rownm
5 FROM (WITH t AS
6 (SELECT 10 AS order_id, 16937555 AS event_id,
7 20100212 AS evnt_date, 'COMPLETE' AS state_code
8 FROM DUAL
9 UNION ALL
10 SELECT 10, 16937555, 20100212, 'ACTIVE'
11 FROM DUAL
12 UNION ALL
13 SELECT 10, 16308004, 20100129, 'OCCURRED'
14 FROM DUAL
15 UNION ALL
16 SELECT 10, 16131904, 20100125, 'ACTIVE'
17 FROM DUAL
18 UNION ALL
19 SELECT 10, 16270684, 20100128, 'OCCURRED'
20 FROM DUAL
21 UNION ALL
22 SELECT 20, 17134164, 20100223, 'COMPLETE'
23 FROM DUAL
24 UNION ALL
25 SELECT 20, 17134164, 20100223, 'ACTIVE'
26 FROM DUAL
27 UNION ALL
28 SELECT 20, 17134164, 20100223, 'STARTED'
29 FROM DUAL
30 UNION ALL
31 SELECT 20, 15479131, 20100105, 'OCCURRED'
32 FROM DUAL) -- End of test data
33 SELECT order_id, event_id, evnt_date, state_code,
34 LEAD (event_id, 1, 0) OVER (PARTITION BY order_id ORDER BY NULL)
35 AS next_evntid
36 FROM t)
37 WHERE event_id = next_evntid)
38 WHERE rownm <= 2
39 /
ORDER_ID EVENT_ID EVNT_DATE STATE_CO NEXT_EVNTID ROWNM
10 16937555 20100212 COMPLETE 16937555 1
20 17134164 20100223 COMPLETE 17134164 1
20 17134164 20100223 ACTIVE 17134164 2
Elapsed: 00:00:00.00
SQL> PS - You should seriously think about ordering the data before you do this kind off operations.
Edited by: Sri on Aug 12, 2011 9:12 AM -
Help needed on to write a program on connecting to data source
I would to program a class that connect to data source without any manually configure.
Is there other way that i could use intsead of using
db = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=MyServerName;Database=MyDataBase","","");
My project requires me to use JDBC-ODBC Bridge on connecting to data source on client machine
Is there any other way?Oh, oh,
why???
It's so simple to do a JDBC connection using the same connection params, which you use for your VB program's connnection.
If your VB prog uses a system or user DSN configured via control panel, then use the same DSN in your Java prog.
Dear karentan,
you have just the same question now active in 4 or 5 different topics. And I and others have not been able to understand what really is your problem, I fear.
Would you please do two things:
1) Start a new topic (yes, another one!) and tell us there what exactly is your problem. What do you want to do?
Not: is it possible ... but: I want ...
2) Go to all the other topics you spreaded here and post the link of your new topic there, so that the poor people who try to answer your 5 (always the same) questions know that they can spare their time.
Please, hold this forum useful!
And let us come to the point that you are helped and we are glad! -
Help needed writing simple PL/SQL statement
Hi,
I need to run the following delete statement in a PL/SQL procedure but for it to commit every 1000 rows or so. Can anyone help?
DELETE
FROM IDIS.YPROCRULES A
WHERE 1 = 1
AND NOT EXISTS (SELECT 'X' FROM IDIS.YPROCCTRL B WHERE A.SEQ_0 = B.SEQ_0)
Thanks
MarkThe fastest most efficient way of doing the delete is to write it in one sql statement as you have done.
Commiting every 1000 rows means you have to use row by row processing. A lot of us call this slow by slow processing.
Every time you commit in a loop , you increase the risk of snapshot too old error, plus you actually slow down the processing, as well as give you issues with regards to what happens if your process fails after x iterations. (some of your data is commited, other data is not, how do you restart the process)
The correct approach is to have appropriately sized rollback/undo segments. -
Help needed creating a linked list program
I have been trying to create a linked list program that takes in a word and its definition and adds the word to a link list followed by the definition. i.e. java - a simple platform-independent object-oriented programming language.
the thing is that of course words must be added and removed from the list. so i am going to use the compareTo method. Basically there a 2 problems
1: some syntax problem which is causing my add and remove method not to be seen from the WordList class
2: Do I HAVE to use the iterator class to go thru the list? I understand how the iterator works but i see no need for it.
I just need to be pointed in the right direction im a little lost.................
your help would be greatly appreciated i've been working on this over a week i dont like linked list..........
Here are my 4 classes of code........
* Dictionary.java
* Created on November 4, 2007, 10:53 PM
* A class Dictionary that implements the other classes.
* @author Denis
import javax.swing.JOptionPane;
/* testWordList.java
* Created on November 10, 2007, 11:50 AM
* @author Denis
public class Dictionary {
/** Creates a new instance of testWordList */
public Dictionary() {
boolean done=false;
String in="";
while(done!=true)
in = JOptionPane.showInputDialog("Type 1 to add to Dictionary, 2 to remove from Dictionary, 3 to Print Dictionary, and 4 to Quit");
int num = Integer.parseInt(in);
switch (num){
case 1:
String toAdd = JOptionPane.showInputDialog("Please Key in the Word a dash and the definition.");
add(toAdd);
break;
case 2:
String toDelete = JOptionPane.showInputDialog("What would you like to remove?");
remove(toDelete);
break;
case 3:
for(Word e: list)
System.out.println(e);
break;
case 4:
System.out.println("Transaction complete.");
done = true;
break;
default:
done = true;
break;
}//end switch
}//end while
}//end Dictionary
}//end main
import java.util.Iterator;
/* WordList.java
* Created on November 4, 2007, 10:40 PM
*A class WordList that creates and maintains a linked list of words and their meanings in lexicographical order.
* @author Denis*/
public class WordList{
WordNode list;
//Iterator<WordList> i = list.iterator();
/*public void main(String [] args)
while(i.hasNext())
WordNode w = i.next();
String s = w.word.getWord();
void WordList() {
list = null;
void add(Word b)
WordNode temp = new WordNode(b);
WordNode current,previous = null;
boolean found = false;
try{
if(list == null)
list=temp;
else{
current = list;
while(current != null && !found)
if(temp.object.getWord().compareTo(current.object.getWord())<0)
found = true;
else{
previous=current;
current=current.next;
temp.next=current;
if(previous==null)
list=temp;
else
previous.next=temp;
}//end else
}//end try
catch (NullPointerException e)
System.out.println("Catch at line 46");
}//end add
/*WordNode.java
* Created on November 4, 2007, 10:40 PM
*A class WordNode that contains a Word object of information and a link field that will contain the address of the next WordNode.
* @author Denis
public class WordNode {
Word object;//Word object of information
WordNode next;//link field that will contain the address of the next WordNode.
WordNode object2;
public WordNode (WordNode wrd)
object2 = wrd;
next = null;
WordNode(Word x)
object = x;
next = null;
WordNode list = null;
//WordNode list = new WordNode("z");
Word getWord()
return object;
WordNode getNode()
return next;
import javax.swing.JOptionPane;
/* Word.java
* Created on November 4, 2007, 10:39 PM
* A class Word that holds the name of a word and its meaning.
* @author Denis
public class Word {
private String word = " ";
/** Creates a new instance of Word with the definition*/
public Word(String w) {
word = w;
String getWord(){
return word;
}zoemayne wrote:
java:26: cannot find symbol
symbol : method add(java.lang.String)
location: class Dictionary
add(toAdd);this is in the dictionary class
generic messageThat's because there is no add(...) method in your Dictionary class: the add(...) method is in your WordList class.
To answer your next question "+how do I add things to my list then?+": Well, you need to create an instance of your WordList class and call the add(...) method on that instance.
Here's an example of instantiating an object and invoking a method on that instance:
Integer i = new Integer(6); // create an instance of Integer
System.out.println(i.toString()); // call it's toString() method and display it on the "stdout" -
Help needed to write a dialog program
Hello ABAP Gurus,
I am very much new to ABAP Programming.
Can anybody help me to write a simple Dialog Program ??
I have a database table.
I have created a screen with screen painter, and kept some input fields & a push button in it.
I want to fill the database table with the data entered into the fields on the screen.
When the user enters the data and presses the PUSH BUTTON then that data record should be stored into the Database table.
So what kinda code I have to write in PAI (Process After Input), to achieve this functionality ??
The help will be greatly appreciated.
Thanks in advance
Best regards
Ravi
Edited by: Ravi Kiran on Oct 28, 2009 2:17 PMIt's easy:
In PAI you have do an insert into a database table, following the steps:
1.on PAI create a module: for exemple Zwrite_table.
2. inside Zwrite_table code as follow:
move var1 to wa_table-var1.
move var2 to wa_table-var2.
move var3 to wa_table-var3. etc etc
insert table ztable from wa_table.
P.s. ztable is a database table.
wa_table is a structure that have the same structure of ztable.
var1 var2 var3 etc is a variable inside your dynpro.
regards,
Roberto. -
Help NEEDED!!! - Quiz Program
Doing a Java project, writing a Quiz program basically got multiple screens and using a Buffered reader which loads a txt folder, at the moment it reads the questions and allows u to skip questions on all 4 buttons, i know need it to count up the correct answers and have a final score etc.
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.StringTokenizer;
import javax.swing.*;
public class Main extends JFrame implements ActionListener
private JButton button, buttonAns1, buttonAns2, buttonAns3, buttonAns4;
private JPanel panel, panelAns, panelAns1, panelAns2, panelAns3, panelAns4;
private JLabel labelTitle, labelName, labelQ1;
BufferedReader inFile;
boolean start =true;
String answer = null;
int noOfQuestions = 0;
Main myMain ;
MusicQuiz myMusicQuiz;
Levels myLevels;
public Main()
String name;
name = JOptionPane.showInputDialog(null,"Please enter your Name!");
JOptionPane.showMessageDialog(null,"Welcome " + name);
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container c= getContentPane();
setSize(700,600);
panel = new JPanel();
panel.setLayout(new GridLayout(5,1));
panel.setSize(600,400);
c.add(panel);
labelTitle = new JLabel("MTV's Quiz Star");
labelTitle.setHorizontalAlignment(JLabel.CENTER);
panel.add(labelTitle);
labelTitle.setFont(new Font("Tahoma",Font.BOLD,48));
labelTitle.setForeground(Color.orange);
labelName = new JLabel("User: "+ name);
labelName.setHorizontalAlignment(JLabel.CENTER);
panel.add(labelName);
labelName.setFont(new Font("Tahoma",Font.BOLD,14));
labelName.setForeground(Color.darkGray);
labelQ1 = new JLabel("");
labelQ1.setHorizontalAlignment(JLabel.CENTER);
panel.add(labelQ1);
labelQ1.setFont(new Font("Tahoma",Font.BOLD,24));
labelQ1.setForeground(Color.darkGray);
panelAns = new JPanel();
panelAns.setLayout(new GridLayout(2,2));
panelAns.setSize(600,400);
panel.add(panelAns);
buttonAns1 = new JButton("");
buttonAns1.addActionListener(this);
buttonAns1.setForeground(Color.darkGray);
panelAns.add(buttonAns1);
buttonAns2 = new JButton("");
buttonAns2.addActionListener(this);
buttonAns2.setForeground(Color.darkGray);
panelAns.add(buttonAns2);
buttonAns3 = new JButton("");
buttonAns3.addActionListener(this);
buttonAns3.setForeground(Color.darkGray);
panelAns.add(buttonAns3);
buttonAns4 = new JButton("");
buttonAns4.addActionListener(this);
buttonAns4.setForeground(Color.darkGray);
panelAns.add(buttonAns4);
setSize(600,400);
show();
countQuestions();
readQuestions();
public static void main(String[] args)
Main myMain = new Main();
public void countQuestions()
try
String line;
inFile = new BufferedReader(new FileReader("Questions.txt"));
try
while ((line = inFile.readLine()) != null)
noOfQuestions++;
inFile.close();
catch(Exception e)
catch (FileNotFoundException e)
System.out.println("File - Questions.txt - File Not Found");
private void readQuestions()
int number = (int)(Math.random() * noOfQuestions);
if(start == true)
start = false;
try
inFile = new BufferedReader(new FileReader("Questions.txt"));
String line = null;
for(int loop =0;loop < number;loop++)
line= inFile.readLine();
StringTokenizer parts = new StringTokenizer(line,"|");
labelQ1.setText(parts.nextToken());
buttonAns1.setText(parts.nextToken());
buttonAns2.setText(parts.nextToken());
buttonAns3.setText(parts.nextToken());
buttonAns4.setText(parts.nextToken());
answer = parts.nextToken();
inFile.close();
catch (Exception e)
/* (non-Javadoc)
* @see java.awt.event.ActionListeneractionPerformed(java.awt.event.ActionEvent)
public void actionPerformed(ActionEvent arg0)
if (arg0.getSource()==myMusicQuiz)
if(myMusicQuiz==null)
myMusicQuiz= new MusicQuiz();
else show();
if (arg0.getSource()==myLevels)
if(myLevels==null)
myLevels= new Levels();
else show();
if(arg0.getSource() == buttonAns1)
readQuestions();
if(arg0.getSource() == buttonAns2)
readQuestions();
if(arg0.getSource() == buttonAns3)
readQuestions();
if(arg0.getSource() ==buttonAns4)
readQuestions();
}In case you're wondering if someone is going to do it for you, I'd guess No. So if you're still sitting there on your hands you might want to do something about it instead.
-
Help needed on a TicTacToe java program
I am very new to java and our teacher has given us a program
that i am having quite a bit of trouble with. I was wondering if anyone could help me out.
This is the program which i have bolded.
{You will write a Java class to play the TicTacToe game. This program will have at least two data members, one for the status of the board and one to keep track of whose turn it is. All data members must be private. You will create a user interface that allows client code to play the game.
The user interface must include:
� Boolean xPlay(int num) which allows x to play in the square labeled by num. This function will return true if that play caused the game to end and false otherwise.
� Boolean oPlay(int num) which allows o to play in the square labeled by num. This function will return true if that play caused the game to end and false otherwise.
� Boolean isEmpty(int num) will check to see if the square labeled by num is empty.
� Void display() which displays the current game status to the screen.
� Char whoWon() which will return X, O, or C depending on the outcome of the game.
� You must not allow the same player to play twice in a row. Should the client code attempt to, xPlay or oPlay should print an error and do nothing else.
� Also calling whoWon when the game is not over should produce an error message and return a character other than X, O, or C.
� Client code for the moment is up to you. Assume you have two human players that can enter the number of the square in which they want to play.
Verifying user input WILL be done by the client code.}Hi,
This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question at the Java Programming forum. The URL to this forum is:
http://forum.java.sun.com/forum.jspa?forumID=31
Cheers
Giri -
Help needed with swings for socket Programming
Im working on a Project for my MScIT on Distributed Computing...which involves socket programming(UDP)....im working on some algorithms like Token Ring, Message Passing interface, Byzantine, Clock Syncronisation...i hav almost finished working on these algorithms...but now i wanna give a good look to my programs..using swings but im very new to swings...so can anyone help me with some examples involving swings with socket programming...any reference...any help would be appreciated...please help im running out of time..
thanking u in advance
anDyhi im Anand(AnDY),
i hav lost my AnDY account..plz reply to this topic keeping me in mind :p
Maybe you are looking for
-
How can I restrict a form to be used for Query-Only sometime (for some users) which can also be used as Insert/Update etc another time (for other users). I am using Open_Form not Call_Form.
-
Windows installer won't format partition correctly.
I'm not very tech minded so Ill try to explain best I can. I am trying to partition mac to install windows. First step: I use Bootcamp to create the partition, the mac restarts and boots to windows installer. However the product key can't be verified
-
How can i watch all movies in english with a spanish account?
I want to see the films in english in my spanish account because i live in spain. but i can only see little movies in english. i what to know if there is any option so that i can see all movies in english.
-
Conversion error - Really urgent II
I�ve got 3 Textfield that exhibit a row from a rowset, and I put a save button with the code public String button1_action() { // User event code here... try{ aprovacaoRowSet.updateRow(); aprovacaoRowSet.commit();
-
Error in updation of location products in Hierarchy
Hi While generating hierarchy in APO, I have already 3 location products available for a particular hierarchy. I went into change mode, added one more location product and updated the hierarchy. It got saved. I could able to see the new loc produ