Manikanta Mogalluri

Greenhorn
+ Follow
since Dec 31, 2008
Merit badge: grant badges
For More
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 Manikanta Mogalluri

Please give me the code to read and write .xlsx files using jxl API

Only .xlsx files.
13 years ago
Hi Ulf,

Thanks for giving the method.

It will be very useful if give me the sample code for this issue.

13 years ago
Hi All,

Could you please help me to insert images in excel workbook using jxl API.

Kindly give me any sample code.
13 years ago

Hasnain Javed Khan wrote:Congrads . Excellent Score

Did you go through the specs ?



Thank you. Yes, i have gone through the specs.
14 years ago
There is Mainly 3H's are supported to reach this goal.

1)HFSJ(Head First Servlets and Jsp)
2)H2O(Lots of water)
3)Help(from Forums,[DELETED],Friends...)

Its a great feeling after getting 100% in the exam.

The above book is excellent and i don't have any words to tell about the book because in such a way it helped me.

[DELETED]

Water also reduce my pressure.

So my dear friends these are the things i followed to reach the goal. Almost i have spend one to two months preparation.

[Ankit: Deleted some inappropriate text]
14 years ago
Dear Suresh,

My hearty Congratulations to you.

Even I didn't get the Lapel pins with my SCJP Certificate.

I want to know how many days for you to complete this exam.

Is it HFSJ [...] enough to complete SCWCD certification ?

Kindly help me and give me the suggestions .
14 years ago
Dear All,

I got an assignment like connecting jdbc using javascript.

Previously i have connected jdbc using jsp however i want to know how to connect jdbc using javascript.

Kindly let me know if any issues.

With Warm Regards,
Manikanta Mogalluri.
Dear All,

I have created the bar charts in standalone applications. But the same thing i have tried to display in jsp.
However it is not showing the output in barchart. Here i have used in both cases jfree chart jar files.
The below one is the code

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ page import="java.awt." %>
<%@ page import="java.io." %>
<%@ page import="org.jfree.chart." %>
<%@ page import="org.jfree.chart.axis." %>
<%@ page import="org.jfree.chart.entity." %>
<%@ page import="org.jfree.chart.labels." %>
<%@ page import="org.jfree.chart.plot." %>
<%@ page import="org.jfree.chart.renderer.category." %>
<%@ page import="org.jfree.chart.urls." %>
<%@ page import="org.jfree.data.category." %>
<%@ page import="org.jfree.data.general.*" %>

<%
final double[][] data = new double[][]{
{210, 300, 320, 265, 299},
{200, 304, 201, 201, 340}
};

final CategoryDataset dataset = DatasetUtilities.createCategoryDataset( "Team ", "", data);

JFreeChart chart = null;
BarRenderer renderer = null;
CategoryPlot plot = null;


final CategoryAxis categoryAxis = new CategoryAxis("Match");
final ValueAxis valueAxis = new NumberAxis("Run");
renderer = new BarRenderer();

plot = new CategoryPlot(dataset, categoryAxis, valueAxis,renderer);

plot.setOrientation(PlotOrientation.VERTICAL);
chart = new JFreeChart("Score Bord", JFreeChart.DEFAULT_TITLE_FONT, plot, true);

chart.setBackgroundPaint(new Color(249, 231, 236));

Paint p1 = new GradientPaint(0.0f, 0.0f, new Color(16, 89, 172), 0.0f, 0.0f, new Color (201, 201, 244));

renderer.setSeriesPaint(1, p1);

Paint p2 = new GradientPaint(0.0f, 0.0f, new Color(255, 35, 35), 0.0f, 0.0f, new Color(255, 180, 180));

renderer.setSeriesPaint(2, p2);

plot.setRenderer(renderer);

try {
final ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
final File file1 = new File("barchart.png");
file1.createNewFile();
ChartUtilities.saveChartAsPNG(file1, chart, 600, 400, info);
} catch (Exception e) {
out.println(e);
}
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<!-- meta http-equiv="refresh" content="1" -->
<title>Bar Chart Page</title>
</head>

<body bgcolor="cccccc">

</body>
</html>

Kindly check and let me know if any issues. Please its very urgent.

With Warm Regards,
Manikanta Mogalluri.

Dear All,

Could any body explain the answer for the following question


Which is the earliest line in the following code after which the object created in the line marked (0) will be a candidate for garbage collection, assuming no compiler optimizations are done?

public class Q76a9 {
static String f() {
String a = "hello";
String b = "bye"; // (0)
String c = b + "!"; // (1)
String d = b; // (2)
b = a; // (3)
d = a; // (4)
return c; // (5)
}
public static void main(String[ ] args) {
String msg = f();
System.out.println( msg); // (6)
}
}


With Warm Regards,
Manikanta Mogalluri,
+91 9941539542.


__._,_.___