Results 1 to 2 of 2
  1. #1
    Nikohw is offline Member
    Join Date
    Sep 2009
    Posts
    4
    Rep Power
    0

    Default java standalone to applet

    how do i convert this standalone application to an applet?

    Java Code:
    		
    class LogicalOpTable {
    public static void main(String args[]) {
    	
    boolean p, q;
       
    System.out.println("P\tQ\tAND\tOR\tXOR\tNOT");
    
    p = true; q = true;
    System.out.print((p?1:0) + "\t" + (q?1:0) +"\t");
    System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t");
    System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0));
    
    p = true; q = false;
    System.out.print((p?1:0) + "\t" + (q?1:0) +"\t");
    System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t");
    System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0));
    
    p = false; q = true;
    System.out.print((p?1:0) + "\t" + (q?1:0) +"\t");
    System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t");
    System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0));
    
    p = false; q = false;
    System.out.print((p?1:0) + "\t" + (q?1:0) +"\t");
    System.out.print(((p&q)?1:0) + "\t" + ((p|q)?1:0) + "\t");
    System.out.println(((p^q)?1:0) + "\t" + ((!p)?1:0));
    		
    	}
    }
    ty

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    808
    Rep Power
    6

Similar Threads

  1. Standalone applications
    By sachin2 in forum New To Java
    Replies: 0
    Last Post: 07-21-2009, 08:08 PM
  2. Replies: 4
    Last Post: 04-23-2009, 09:54 PM
  3. color text in standalone???
    By hung_tyh in forum New To Java
    Replies: 6
    Last Post: 12-24-2008, 04:29 PM
  4. howto make a standalone application?
    By Jerre in forum New To Java
    Replies: 4
    Last Post: 06-08-2008, 09:58 AM
  5. Unknown publisher / Signing standalone tomcat.exe
    By millross in forum New To Java
    Replies: 1
    Last Post: 06-14-2007, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •