User Profile

Collapse

Profile Sidebar

Collapse
ahmee
ahmee
Last Activity: Jan 22 '12, 11:54 AM
Joined: Mar 30 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ahmee
    started a topic Getting mutliple values from mutliple tables

    Getting mutliple values from mutliple tables

    There are two table from which i want to get value
    1. heads
    2.subheads


    The field name in heads table is:

    id, head_name.


    the field name in subheads table is:
    id,subhead_name .



    i want to get value from these two table when the value mean id is '1'

    i wrote the query something like this
    Code:
    SELECT `head_name`,`subhead_name`
    ...
    See more | Go to post

  • ahmee
    started a topic G:\ is not a valid win32 application

    G:\ is not a valid win32 application

    when i autorun my java program through usb drive i got this error...please help me
    See more | Go to post

  • ahmee
    replied to i want to autorun a program
    in Java
    when i autorun this or any other file i got a notice that
    G:\ not a valid win32 application
    See more | Go to post

    Leave a comment:


  • my pleasure.
    See more | Go to post

    Leave a comment:


  • xploreraj this how you can enter number of your choice as much as you can and if you have any problems regarding program so can ask



    Code:
    import javax.swing.*;
    
        class BigSmal
    {
        public static void main(String[] args) {
    
        int[] a=new int [8];
        int[] b=new int [8];
        int j=0;
        String Output= " ";
    
        for(int i=0;i<=5;i++)
    ...
    See more | Go to post

    Leave a comment:


  • ahmee
    replied to i want to autorun a program
    in Java
    i also tried this way but its still not working
    See more | Go to post

    Leave a comment:


  • ahmee
    started a topic i want to autorun a program
    in Java

    i want to autorun a program

    i am autoruning one of my java program but its not working.i first converted the program in the jar file and then write this code in notepad and copy this code in my usb which is below.

    [autorun]
    open=jarf.jar
    action=Run jarf Program
    icon=jarf.jar
    label=My Portable PC

    and saved my jar program in the usb.please help me out
    See more | Go to post

  • ahmee
    replied to display an error msg saying wrong format.
    in Java
    you welcome...
    See more | Go to post

    Leave a comment:


  • ahmee
    replied to display an error msg saying wrong format.
    in Java
    This is an simple try catch statement program check it out it will help you to understand try catch better
    Code:
    import javax.swing.*;
    
       class demo
    {
           public static void main(String[] args){
      String Dplay= "you have not enter an integer";
           try
    {
           String  enter=JOptionPane.showInputDialog("enter num");
           int  i=Integer.parseInt(enter);
    ...
    See more | Go to post
    Last edited by Frinavale; Aug 31 '10, 06:47 PM. Reason: Please post code in [code] ... [/code] tags in the future. Added code tags. Also removed all bold (yelling) from post.

    Leave a comment:


  • ahmee
    replied to display an error msg saying wrong format.
    in Java
    Check this out.I used TRY CATCH statement.

    Code:
    import java.util.Scanner;
    import javax.swing.JOptionPane;
    class Stage2a
    {
    public static void main(String[] args)
    {
    String D_Play="the user has inputed a string where an integer is needed";
    	try{
    
    final int WIDTH = 100; // width of the sheet in pixels
    final int HEIGHT = 100; // height of the sheet in pixels
    
    String
    ...
    See more | Go to post
    Last edited by Frinavale; Aug 31 '10, 06:47 PM. Reason: Please post code in [code] ... [/code] tags in the future. Added code tags. Also removed all bold/caps (yelling) from post.

    Leave a comment:


  • ahmee
    started a topic i have a question?help me
    in Java

    i have a question?help me

    here is my code below. i have question regarding my code.why we have taken "output" as string.is this because we have used concate sign in this expression
    output+=value+" "; in the code if not plz tell me why??


    Code:
    int value;
    String output="";
    for(int i=1; i <=10 ; i++)
    {
      value= 1+(int)(6* Math.random());
      output+=value+"";
      if(i%2==0){
    ...
    See more | Go to post
    Last edited by Frinavale; Aug 12 '10, 06:34 PM. Reason: Please post code in [code]...[/code] tags. Added code tags & fixed indentation (good indentation shows good coding practices)

  • ahmee
    started a topic why we use goto statement?
    in Java

    why we use goto statement?

    can anyone explain me goto statement with simple exmp...thnx
    See more | Go to post

  • i got q new question:

    i used math class methods pow for squaring the value and i used loop to square numbers upto ten.... but i am getting the problem.. here is my code bel0w

    for(int i=1,j=1; i<10&&j<10; i++,j++){

    System.out.prin t(Math.pow(i,j) );
    System.out.prin t("\n");


    and iam getting this output instead of squaring the numbers

    1.0
    4.0
    27.0
    ...
    See more | Go to post

    Leave a comment:


  • What is goto statement used for? Provide a simple example

    iwanna known about what goto statement is used for with an exmple
    See more | Go to post

  • ahmee
    replied to can anyone explain me fibonacci number program?
    in Java
    igot all but i didnt understand that when you take x=4 why it give all zero as output.Is reason is this that we didnt find x=2,x=3 first and directly jumps on the x=4 so when
    f[4]=f[4-1]+f[4-2]
    f[4]=f[3]+f[2]


    so there is no value regarding f[3]and f[4] so thats why it is displaying all zeros in the output


    thanks in advance
    See more | Go to post

    Leave a comment:


  • in first code the i is increment e.g int i=1 so in while statement the value of i that is one is increment to 2 and then checked with max(max can be any value which you specfic to compare with.

    sEcond code is the same as the first one as in first you write i++ in whileloop and in second you write as ++i it doesnt matter both are same

    In third i is compare with max(which can be any value you specfy)
    See more | Go to post

    Leave a comment:


  • anz...

    throw exception is used to specfic and catch errors in program and throw (to show it) it to programer.try and catch statement is used for throwing exceptions.
    See more | Go to post

    Leave a comment:


  • ahmee
    started a topic can anyone explain me fibonacci number program?
    in Java

    can anyone explain me fibonacci number program?

    f[0] = 1;
    f[1] = 1;
    int x;

    System.out.prin t(f[0] + "\n" + f[1] + "\n");
    for(x=2; x<=45; x++)

    f[x] = f[x-1] + f[x-2];
    System.out.prin tln(f[x]); [/CODE]
    i cant understand that how it hows after for statement.it first print 1,1 and then 2.the thing emm not getting is that how...
    See more | Go to post
    Last edited by Niheel; Jul 29 '10, 07:52 PM.

  • if javascript is not object oriented language then why we use methods in javascript?

    if javascript is not OOL then why we use methods like GET AND POST in it...can anyone expalain?
    See more | Go to post

  • the point at which you are at now and confused in chosing your Career.some months ago i was.listen my frd and puts this things in your mind that no career is good or bad.its the people who make it so.if you wanna listen me...do wot your mind thinks is best for you....but remmeber one thing do it in a way that no one on the planet can do it best of best as you ...and its either programming,gra phics,dancing what eva you wana do.do it perfectly in a...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...