Anshul Singhal

Greenhorn
+ Follow
since Dec 14, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Anshul Singhal

Hi,

Anyone who has worked with Executable UML or UML Action Language? I want to know the difference between xUML and generating fully executable code from the UML.
I googled this topic for more information. I think generating executable code from UML involves the concepts of xUML. Anyone experienced with this?
11 years ago
Hello Everyone,

I'm working on Java-Flex based project. During the discussions we spent a lot of time on formulating the design. The design is getting changed almost every other week. We took this problem to IBM where they introduced us to IBM RSA (My company is an ardent user of IBM products). What we are planning to have is a UML to JAVA transformation. We are still in a prototyping phase. Our aim is to generate JAVA code from the design we publish. I looked at some examples from the web. I made some UML designs and it generated the classes for me, that is OK. What I'm trying to achieve is something that could generate the code( not UI) but altleast my Back end Business logics. The tool from activity, case,sequence etc diagrams should be able to generate the code for me. Is this possible with RSA?. Can someone help me with some example links?
11 years ago
Hi,
I'm new to flex. I'm working on a requirement where I need to display data in AdvancedataGrid and making the rows expandable to display an ItemRenderer. I have used HierarchicalData to do the same. I've achieved my objective to an extent except for the error where all the rows gets expanded. Can anyone please help. If required I can share the code for the same.

12 years ago
Hello Mathew,
Thanks for replying. But I still don't get in the former case where it was <T extends Comparable>, You interpreted it as T= Comparable and in your case where <T extends Comparable<? super T>> we are unable to compile.

If possible can you please explain the flow of it.
12 years ago
Hi everyone



why does Object x = t.findLarger(123, “456”); work??

I mean 123 and "456" are of different types? How can these be compared in the line x.compareTo(y)??


12 years ago
Hi,

I have this (final)class named ConfigurationBuilder. This Class has some methods all of them have return type ConfigurationBuilder




so why does writing



work???


shouldn't there be some variable to handle the return type??
12 years ago
Greg, Thanks for replying

well, the array was of the dimension on 15*22*2. Thus in the initialization part it has 15 rows and 22 columns. I tried swapping the i and j dimensions but the program is still showing the same error.
13 years ago


the code compiles but at the run time it halts and shows

Exception in thread "main" java.lang.ArrayIndexOutOfBoundException at 2 at anshul.main(practice.java)

Can some one please explain what does it mean??
Thankyou
13 years ago
Hello guys,

I making a quadtree from a matrix. Please find attached with this post a sample image of how it is done. I ve used recursion but not able to get to the final result.



13 years ago
LOL...well thankx it worked....I didn close the file. But I still dont understand why did that happen. In my original java program I am able to write to a file without closing it..!!
13 years ago
Hello people,
I m working on this code.



This is a section of code. I m trying to retrieve links from a webpage whose contents are there in pagecontents variable. While m in the loop I m storing them in link variable but not able to write them in the file links.txt. But in output file is created but no data in written on it.
13 years ago
I m sorry Charles..for nt putting my code in tags....

and about the soultion which you gave me I altered my main method by putting String args[] and replacing the first line java pckage1.anshul but still it doesn work out..
14 years ago
I ve made a folder java in my D drive. The folder Java contains a folder pckage1 and I ve written a following code under the name anshul.java


package pckage1;

import java.io.*;

class kkt
{
public void display()
{
System.out.println("this is kkt");
}

}


public class anshul extends kkt
{

public static void main()
{
System.out.println("anshul singhal");
anshul an = new anshul();
an.display();
}

}


this program compiles correctly using javac anshul.java but when i try to run it...(java anshul) it gives me a no class deffound error
my classpath is set to D:\java;

can someone please help..!!!..


14 years ago
Thank you Rob...But still I've a doubt

there is a concept of narrowing in automatic typecasting which states that if a larger type can be assigned to smaller type with a loss of information for e.g float can be assigned to int with the loss of decimal part. Why can't the same thing happen here??
14 years ago