78 Posted Topics

Member Avatar for qacompenguit

I have a few suggestions for you: 1) It would be advisable to use the [I].length [/I]attribute of the array object. So instead of [inlinecode]for(i=0;i<10;i++)[/inlinecode] please uses [inlinecode]for (i=0; i < ns.length; i++)[/inlinecode] Btw, why do you suppose we have access to the [I].length[/I] attribute of the array object? 'Cause …

Member Avatar for PoovenM
0
2K
Member Avatar for PoovenM

Hey guys, I'm really new to this :icon_confused: I've managed to setup a Web Service and a Client to access the service within Eclipse. However, I want to access a Web Service that already exists. From what I understand, that service must have a WSDL (Web Services Description Language) for …

Member Avatar for PoovenM
0
181
Member Avatar for babyfrostie

I agree with [I]javaAddict[/I] (To err is human, to write java code is divine - I like that!), you should read the data into a [B]Vector<String>[/B] object. There are many ways the [I]Bubble[/I] sort can be done, I would imagine your teacher would have given you an algorithm since he/she …

Member Avatar for PoovenM
0
144
Member Avatar for onsir

I'm a bit confused as to what you're saying :icon_confused: But I do understand that you want to only allow real input with two decimal places. If you have a GUI then JFormattedTextField is the class you're looking for and this is how you'd use it: [code] NumberFormat real = …

Member Avatar for PoovenM
0
195
Member Avatar for cbalu

:icon_idea: An interface prescribes a set of behaviour (i.e. method) listings that you’d like an Object to have. Since static methods don’t work on an Object there isn’t really a need to declare a static method within an interface and so it has been prohibited. I think it's best to …

Member Avatar for darkagn
0
105
Member Avatar for partyanimal

Is it the logic you're having trouble with or the C# GUI calls? A ratio can simple be expressed as a [COLOR="Red"]faction[/COLOR] and thus a [COLOR="Green"]real number[/COLOR] (i.e. the [B]double[/B] data type). So 4:1 is really [COLOR="Red"]4.0/1.0[/COLOR] = [COLOR="Green"]4[/COLOR] and 1:4 is [COLOR="Red"]1.0/4.0[/COLOR] = [COLOR="Green"]0.25[/COLOR]. It seems to me that …

Member Avatar for PoovenM
0
292
Member Avatar for Ravenous Wolf

I'm new to C#, but it seems to me that surely you'd be able to pass those objects as reference parameters so that changes in your method can reflect on the original object where it is needed. I remember coming across a [B]ref[/B] keyword? Regardless, I think you're code is …

Member Avatar for latitude7ds
0
100
Member Avatar for PoovenM

Hey guys, I was wondering, in Java the following is allowed: [code=java] Class[] classList = new Class[10]; classList[0] = System.class; [/code] Can this be done in C#? Thanks! :icon_smile:

Member Avatar for PoovenM
0
113
Member Avatar for PoovenM

Hi all, I'm not sure how to phrase this question... I have a table that requires a foreign key of anything table - this foreign key is automatically generated and the key field in the 'foreign' table. So I have the following situation (kind of): Table Observation [INDENT][B]Time_Stamp[/B] - [I]primary …

Member Avatar for PoovenM
0
134
Member Avatar for PoovenM

Hi all, I was wondering, is there also a classloader in C#? I know that Java has it; if there isn't a classloader in C#, how would one load classes during runtime? If there is a classloader, how do I use it? I mean can someone show me an example …

Member Avatar for PoovenM
0
123
Member Avatar for Danii

Well it seems to me that you're a bit unfamiliar with Java. Here's a few hints in using the classes: The Scanner object you created: [inlinecode]Scanner sc = new Scanner(System.in);[/inlinecode] is perfectly correct. Next you have to ask object to get data from the console (since you specified [I]System.in[/I] as …

Member Avatar for PoovenM
0
149
Member Avatar for argh2005

There are other setting to consider. I've not used sendmail, but with postfix, there are a few things in the config file (/etc/postfix/main.cf in Fedora) that need to be unblocked: mydomain = cs.ukzn.ac.za inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, $mydomain This is of course a late reply (years late!) …

Member Avatar for John A
0
214
Member Avatar for PoovenM

Hey guys, I’m doing a Networks Security course and the lecture said that those that can demonstrate any form of hacking will get bonus marks. I’ve tried searching, but all I really get are explanations of how the hack works… what I’d really like are tools to do the actual …

Member Avatar for PoovenM
0
144
Member Avatar for PoovenM

Hi, I'm looking for a learning tool that helps a student/novice user program (preferably in Java). I know of Jeliot (a visualization program) that attempts to helps student understand how execution occurs. JTest is a professional package that detects error and tends to describe why they occur and how to …

Member Avatar for jwenting
0
89
Member Avatar for zhapool

A GUI (Graphical User Interface) is basically what you see all the time. You click somewhere and an event is triggered and your program reacts. I don't think a first year IT student would be required to design a GUI. You do need to be more specific. Here's some key …

Member Avatar for toxicboy
0
220
Member Avatar for PoovenM

Hey guys, so I’m writing a code analyzer and I’ve reached a bottleneck with parsing Java numbers from the source code. It works fine for the usual int, double and float numbers expect when they are represented as either octal of hexadecimal. The ‘parse’ method of [inlinecode]Integer[/inlinecode] and [inlinecode]Double[/inlinecode] don’t …

Member Avatar for PoovenM
0
207
Member Avatar for PoovenM

Hello :) So I'm doing a project based on semantic analysis of Java code whereby my program (hopefully a plug-in) will prompt the user with solutions to his/her compiler errors with the option to auto-fix. What sets my project apart from a program like Eclipse is that it's targeted for …

Member Avatar for PoovenM
0
1K
Member Avatar for no1zson

Hey, was just wondering... when you decrement [inlinecode]currCD[/inlinecode], how do you ensure that it isn't a negative number? Perhaps it is handled internally... but if it isn’t then wouldn’t that be an issue? Yeah was just wondering...

Member Avatar for peter_budo
0
272
Member Avatar for madhu.garimilla

Yes, please tell us how you think the problem could be solved and we will help you program/tweak or provide an alternative to your solution. Here's a tip though, often algorithms exists that provide an efficient answer, but sometimes brute force is really all you need.

Member Avatar for iamthwee
0
1K
Member Avatar for PoovenM

Hey guys, I'm creating a code analyzer that enforces the CamelCase convention that Java uses, for example, thisIsAWellConstructedJavaVariable and thisinnotawellconstructedjavavariable. So obviously I need to allow my program to indentify English words. What I plan to do is search over a dictionary (database if it exists) until the are no …

Member Avatar for PoovenM
0
152
Member Avatar for nizam147

You problem doesn't seem Java related. Perhaps try a different forum? I've never heard of 'war' files, but if you need to understand there format, I suggest using Wikipedia. If you need help with writing data to a file then that would be a Java related query. And if I've …

Member Avatar for stultuske
0
74
Member Avatar for mrark

I don't quite grasp what you're trying to ask. But basically all objects have some reference or pointer to the heap (memory handled by Windows). Objects would be those entities created using the [inlinecode]new[/inlinecode] operator. A null exception is flagged whenever a variable is declared but not instantiated. Consider: [code] …

Member Avatar for PoovenM
0
81
Member Avatar for a.baki

I've never really heard of optimization on a high level programming language. In assembly perhaps. So I would expect that X = 0 is more efficent that X = Y * 0; The issue lies with memory access and compution. X = 0 accesses memory once where as the X …

Member Avatar for Rashakil Fol
0
76
Member Avatar for uswatun

[COLOR=#555555]So inheritance is huge concept in Object Orientated Programming. It allows us to create objects in a very clean manner. It's best explained with an example.[/COLOR] [COLOR=#555555]Suppose that we have a class Animal. This class would have attributes that most animal’s posses, such as number of legs, stable food, average …

Member Avatar for PoovenM
0
123
Member Avatar for Cerberus

Wow I've never noticed that before. The JOptionPane doesn't really disappear. It's there, just not on the Task Bar, so you'd have to use <Alt> + <Tab> and you'll be able to switch to it. These one more thing to do with the display.. I just can't seem to remember …

Member Avatar for Cerberus
0
237
Member Avatar for jetyan

At first I felt that the Java API (all the class files you're talking about) where a bit of a bother, but really they are great! Because what you want to be able to do, you'll find the steps in the API. I huge help would be to downlaod the …

Member Avatar for jwenting
0
113
Member Avatar for Pumbaa_hughes75

Yeah we aren't allowed to help with homework unless effort has been shown. But to get you started: [code] java myprog [/code] is actually asking java to execute the file myprog.class so of course you must have compiled it first. By typing: [code] java myprog data1 data2 data3 [/code] you …

Member Avatar for Pumbaa_hughes75
0
108
Member Avatar for ajay_tabbu

It's perfectly acceptable to have an inner class. You'll be able to access all the methods and instance variables of the inner class in your outer class. Now I'm not too sure about the reverse. I think that you'll be able to access all instance methods of the outer class …

Member Avatar for jwenting
0
242

The End.