LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2011, 09:22 AM   #1
wicked14
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
Java using interfaces please help me


public class Siodina{
public static void main(String a[]){
/*
* 1. Oak
* 2. Oracle
* 3. Sun Microsystems
* 4. James Gosling
*/
int prima=8;
Siodina s=new Siodina();
//blueprint of your object
boolean b=false;
blahblah();
}
private static boolean blahblah(){
return true;
}
public interface Richeve{
public void Bebedor(int chiv);
public final int age=21;
}
}

can anyone help me get the out put for this.i want to print out the value of the interface age 21.im not that familiar with OOP in java.tnx in advance
 
Old 09-19-2011, 03:58 PM   #2
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
copy this to a file "Siodina.java".
Compile with "javac Siodina.java".
Run with "java Siodina".
 
Old 09-19-2011, 05:56 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
There is almost no OOP going on there. Also, please use [CODE] tags, and google System.out.print().
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /etc/network/interfaces configuration for virtual interfaces nonshatter Linux - Networking 4 10-25-2010 06:22 AM
LXer: Writing Java code that interfaces with DB2 LXer Syndicated Linux News 0 03-05-2007 02:01 PM
I think there is a problem with Java (extending interfaces) eantoranz Programming 0 03-18-2005 08:57 AM
Is there a Linux app to help layout user interfaces for Java? BobBuchanan Programming 1 06-01-2004 08:23 PM
Java - Interfaces, inner classes and callbacks for events gwp Programming 3 12-09-2003 04:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration