Forum: Java Aug 4th, 2009 |
| Replies: 13 Views: 411 yep ,
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
if(jRadioButton1.isSelected())
{
// do the operation
}
else |
Forum: Java Jul 17th, 2008 |
| Replies: 1 Views: 3,820 hi,
i think you are already getting the String in to the Character, but you should replace
d.charAt(0);
with
c = d.charAt(0);
Thats it really , as we already know that String is... |
Forum: Java Jul 16th, 2008 |
| Replies: 1 Views: 345 hi,
Java Script and Java are totally different. You just need a book on Java, like Head first Java or Java how to program. There are many more out there. |
Forum: Java Jul 15th, 2008 |
| Replies: 5 Views: 498 |
Forum: Java Jul 15th, 2008 |
| Replies: 5 Views: 498 It can be done without using arrays but if you have to use it then , do you have to actually store the name of the person in an array element.
For example
Adam = seat[0];
like this ?
Anyway... |
Forum: Java Jul 15th, 2008 |
| Replies: 5 Views: 498 hi,
i think you should construct your program differently , the reason behind is the for loops. When the user enters 1, for the first class , it will go to
for (int firstclass = 1;... |
Forum: Java Jul 7th, 2008 |
| Replies: 4 Views: 977 That was just a pseudo code :p, thanks anyway |
Forum: Java Jul 6th, 2008 |
| Replies: 4 Views: 977 I managed to split up a 24 bit number by using signed and unsigned shifting of numbers. But i got a question from that part too. Is it true that if we shift a number by 32 bits , all data associated... |
Forum: Java Jul 3rd, 2008 |
| Replies: 1 Views: 387 Even though i have not made so many applets, but i am aware of advantages linked to it. If you have done maths in your academic life, and if you go on internet for help you will see some kind of... |
Forum: Java Jul 3rd, 2008 |
| Replies: 4 Views: 977 hi ,
i have a simple problem here, that is how can i convert an Decimal integer into Hexadecimal integer and not in Hexadecimal string. I have wrote the following code and... |
Forum: Java Jun 19th, 2008 |
| Replies: 4 Views: 526 hi
I am an engineering student as well , i jus did my second year exams , i dont know abt .NET but java is very helpful , i am doing java this summer. Anyways it all depends on the type of... |
Forum: Java Jun 12th, 2008 |
| Replies: 3 Views: 1,180 hi,
Thanks for the guidance : )
void buildAlphabet()
{
ArrayList al = new ArrayList(26);
al.add("A");//at i = 0
for ( int i = 1 ; i<=26;i++)
{ |
Forum: Java Jun 12th, 2008 |
| Replies: 3 Views: 1,180 hi ,
i am tryin to put all the upper case alphabets in an array list and , then i want it to print on screen , but for some particular reason i am getting no result but a strange output. ... |
Forum: Java Jun 11th, 2008 |
| Replies: 7 Views: 855 Oooooh a stupid mistake lol , Thanks for help its working ; ) |
Forum: Java Jun 11th, 2008 |
| Replies: 7 Views: 855 By using the above method i am still getting the same result |
Forum: Java Jun 11th, 2008 |
| Replies: 7 Views: 855 i have used another method here which by using Random function, and my array creation method looks like this:
public int[] ArraySize(int size)
{
Random ran = new Random();
int[] Array1= new... |
Forum: Java Jun 11th, 2008 |
| Replies: 7 Views: 855 hi,
i have changed my code but i get this error saying "loss of precision".
public int[] ArraySize(int size)
{
int[] Array1= new int[size];
int i = size;... |
Forum: Java Jun 11th, 2008 |
| Replies: 7 Views: 855 Hi,
i have a problem here , i have made a class which has three methods , first method is to get size of the array and assign a random number to every element of array. Second method is to... |
Forum: Java Jun 5th, 2008 |
| Replies: 3 Views: 1,034 hi,
I am an electronic engineering student. I have some knowledge about robots , and if you really want to make a robot to move you need to learn how to program micrcontrollers inside the... |
Forum: Java Jun 5th, 2008 |
| Replies: 3 Views: 461 i hope u figured it out, but the following code works, u mite need to change that starting part a bit , because the code is from actual class. : )
void squares()
{
int i=0;
do ... |
Forum: Java Jun 4th, 2008 |
| Replies: 13 Views: 8,308 import java.awt.*;
import java.applet.*;
public class graphic extends Applet {
Button button1;
public void init() {
}
public void paint(Graphics g) { |
Forum: Java Jun 4th, 2008 |
| Replies: 13 Views: 8,308 Thanks for your replies , i really wasn't expecting so many replies for my simple question.Because of your explanation in detail i understood it properly.Mathematically Alex is 100% right , because... |
Forum: Java Jun 3rd, 2008 |
| Replies: 13 Views: 8,308 Hi,
I am jahan, i just started java applets and i was trying to draw a graph. The idea i am using is based on drawLine(xmin,ymin,xmax,ymax). I wanted to get a graph for sinx which is proving... |