Rajani kanth Pandiri

Greenhorn
+ Follow
since Jan 28, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajani kanth Pandiri

Im new to javaranch. Im planning to write java certification.. But when coming to the SCJA and SCJP, which one i should take first..
Please suggest me which exam to take first.

Thanks in adavance
15 years ago
ye i got it... thank you very much...
15 years ago
what is strictfp in java.lang.Math. please explain me with one example.
15 years ago
yes. it has compiled but not executed with appletviewer
15 years ago
problem with the following code can anyone help


import java.io.*;
class BubbleSortDemo
{
public static void main(String a[])
{
DataInpuStream dis=new DataInputStream();
System.out.pritnln("Enter the size of Array.");
int size=Integer.parseInt(d.readLine());
int[] arr1=new int[size];
System.out.println("Enter the elements:");
for(int i=0;i<arr.length;i++)
{
arr1[i]=Integer.parseInt(d.readLine());
}
System.out.println("Elements are:");
myprint(arr1);
sort(arr1);
System.out.println("Sorted list Elements are:");
myprint(arr1);
}
static void sort(int l[])
{
for (int j=l.length-1;j>=0;j--)
{
for (int k=0;k<j;k++)
{
if(l[k]>[k+1])
{
l[k]=l[k]+l[k+1];
l[k+1]=l[k]-l[k+1];
l[k]=l[k]-l[k+1];
}
}
}
}
static void myprint(int m[])
{
for (int p=0;p<m.length;p++)
{
System.out.println(" "+m[p]);
}
}
}
15 years ago
Mr, keith..
when i do it with browser i get it. but when i tried with appletviewer i dint get. whyy
15 years ago
ya i got thankyou.
15 years ago
I/O exception while reading: C:\Rajani Kanth\Java\Programs\BorderLayoutDemo (The
system cannot find the file specified)
15 years ago
thank you..

I executed this with appletviewer. still it is giving error as IO Exception while reading..
15 years ago
when im trying to execute the following code, it has been compiled but it doesn't execute can anyone help

import java.awt.*;
import java.awt.BorderLayout;
import java.applet.*;
import java.util.*;

/*
<applet code="BorderLayoutDemo" width=400 height=200>
</applet>
*/

public class BorderLayoutDemo extends Applet
{
public void init()
{
setLayout(new BorderLayout());
add(new Button("Top"), BorderLayout.NORTH);
add(new Button("Bottom"), BorderLayout.SOUTH);
add(new Button("Right"), BorderLayout.EAST);
add(new Button("Left"), BorderLayout.WEST);
String message="Hello welcome to the world of Heaven";
add(new TextArea(message));
}
}
15 years ago
Thanks for reply
I did this already.
Why cant i declare as i mentioned.
Hi Dipti
Even i too new to this forum discussion. Recently i have registered. Im also planning to take SCJP. Could u able to help me about which exam we should take either of SCJP 1.4 and SCJP 1.5.

What u have planned. And which exam you are going to take.
Why cant we declare as below..

public class StaticTest
{

public static void main(String a[])
{
static int j=11;
++j;
System.out.println("The value of J is "+j);
}
}

when im compiling its saying:
StaticTest.java:6: illegal start of expression