Search Results

Showing results 1 to 23 of 23
Search took 0.01 seconds.
Search: Posts Made By: Software guy ; Forum: Java and child forums
Forum: Java Aug 4th, 2009
Replies: 13
Views: 411
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
Thats cool :)
Forum: Java Jul 15th, 2008
Replies: 5
Views: 498
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
That was just a pseudo code :p, thanks anyway
Forum: Java Jul 6th, 2008
Replies: 4
Views: 977
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
Oooooh a stupid mistake lol , Thanks for help its working ; )
Forum: Java Jun 11th, 2008
Replies: 7
Views: 855
Posted By Software guy
By using the above method i am still getting the same result
Forum: Java Jun 11th, 2008
Replies: 7
Views: 855
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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
Posted By Software guy
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...
Showing results 1 to 23 of 23

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC