Home » Developer & Programmer » JDeveloper, Java & XML » pleaseee help
pleaseee help [message #366699] Sat, 14 October 2000 20:24 Go to next message
bib
Messages: 3
Registered: October 2000
Junior Member
how do i print int he screen the first ten mulitiplication tables in the screen
using two while loops, one of them has to be nested. this is the structure

while(a < 10)
{
a++;
while (b < 10)
{
b++;
c= a * b;
System.out.print(c);
}
{
Re: pleaseee help [message #366700 is a reply to message #366699] Sat, 14 October 2000 23:08 Go to previous messageGo to next message
Radhesh Mohandas
Messages: 20
Registered: August 2000
Junior Member
Hi,
I assume that u have written a Java Stored
Procedure that has the above code and are having
problems printing it on the screen using sqlplus.

this should work;

wrap the above function into a global function say
printtable;

sql> set serveroutput on size 5000;
sql> call dbms_java.set_output(5000);
sql> call printable();

For more information look into Oracle 8i Java Developers Guide - chapters 3 and 4

-Radhesh
Re: pleaseee help [message #366701 is a reply to message #366700] Sun, 15 October 2000 07:52 Go to previous messageGo to next message
bib
Messages: 3
Registered: October 2000
Junior Member
no this doesn't have anything to do with sql its just a simple program to print out the first ten multiplicaton tables
for example
1 2 3 4 5 6 7 8 9 10
2 4 6 etc....
Re: pleaseee help [message #366702 is a reply to message #366700] Sun, 15 October 2000 07:53 Go to previous message
bib
Messages: 3
Registered: October 2000
Junior Member
no this doesn't have anything to do with sql its just a simple program to print out the first ten multiplicaton tables
for example
1 2 3 4 5 6 7 8 9 10
2 4 6 etc....
Previous Topic: jdbc generating page fault
Next Topic: Oracle8/JDBC/Threads/ConnectionPools...
Goto Forum:
  


Current Time: Fri Apr 19 12:39:26 CDT 2024