Click here to Skip to main content
15,890,825 members
Home / Discussions / Java
   

Java

 
GeneralRe: Deploy an ASP.NET application on WebLogic Pin
ZurdoDev1-Oct-14 1:17
professionalZurdoDev1-Oct-14 1:17 
GeneralRe: Deploy an ASP.NET application on WebLogic Pin
Richard MacCutchan1-Oct-14 1:27
mveRichard MacCutchan1-Oct-14 1:27 
AnswerRe: Deploy an ASP.NET application on WebLogic Pin
jschell29-Sep-14 7:53
jschell29-Sep-14 7:53 
QuestionError connecting Oracle on localhost: Could not get JDBC Connection ? Pin
taibc27-Sep-14 5:56
taibc27-Sep-14 5:56 
AnswerRe: Error connecting Oracle on localhost: Could not get JDBC Connection ? Pin
jorgesys9-Oct-14 11:12
jorgesys9-Oct-14 11:12 
Questionadding smileys to client server program in java Pin
Member 1111353426-Sep-14 23:02
Member 1111353426-Sep-14 23:02 
AnswerRe: adding smileys to client server program in java Pin
Richard MacCutchan27-Sep-14 2:24
mveRichard MacCutchan27-Sep-14 2:24 
QuestionRunning Java Code Errors: Console Output Result Termination Pin
Member 1109874321-Sep-14 9:59
Member 1109874321-Sep-14 9:59 
Hello there fellow java users,

I'm dealing with some situations with Java Eclipse, I was writing the codes for a public class related to 'books". basically using instance data for the author, publisher, copy right date, etc. I feel like I've got all the correct codes and everything but I feel as if I've stumbled onto a certain error that I can't fix. Every-time I try to run the program the console output says: <terminated> book[Java Application] C:\Program Files (x86)\Java\jre7\bin\javaw.exe.

I don't know what I did wrong, if anybody can help me that would be great. Here are the codes i wrote:
C#
package book;
public class book {
    public static void main(String[] args){

    }
            private String title;
            private String author;
            private String publisher;
            private int copyRightDate;


            public book(String authorName, String publisher, String author, String year22) {


                title = getTitle();
                author = getAuthor();
                publisher = getPublisher();
                copyRightDate = year2();
                }
                private int year2() {
                return 0;
            }
                public book(String authorName, String publisher2, String author2,
                    int year32) {
            }
                public book()
            {
                author = "Ridley Pearson";

                title = "Kingdom Keepers";
                publisher = "Disney";

            }
            public void setAuthor(String authorName) {
                author = authorName; }
                    public String getAuthor() {

                return author; }

             public void setTitle(String bookTitle) {
                title = bookTitle; }

            public String getTitle() {
                return title; }

            public void setPublisher(String publisherName) {
                publisher = publisherName; }
            public String getPublisher() {
                return publisher;}
            public void setCopyRightDate(int date) {

                copyRightDate = date; }

            public int getCopyRightDate() {
                return copyRightDate; }

            public String toString() {
               return (title + "\t" + author + "\t" + publisher + "\t" + copyRightDate);}

   public class bookshelf{
   }
            public void main1(String[] args) {

            }


            final int year2 = 2010;

            final int year3 = 2011;
               {

               }
               {

               new book ("Kingdom Keepers III\n", "Disney In Shadow\n", "Ridley Pearson\n", year2);

               new book("Kingdom Keepers IV\n", "Power Play\n", "Ridley Pearson\n", year3);

               System.out.println("Kingdom Keepers III");
               System.out.println("Kingdom Keepers IV");



               }
   }

Andrew Besbekos
Computer Science Student

AnswerRe: Running Java Code Errors: Console Output Result Termination Pin
Richard MacCutchan21-Sep-14 21:14
mveRichard MacCutchan21-Sep-14 21:14 
GeneralRe: Running Java Code Errors: Console Output Result Termination Pin
Member 1111160626-Sep-14 0:52
Member 1111160626-Sep-14 0:52 
QuestionRe: Running Java Code Errors: Console Output Result Termination Pin
Richard MacCutchan26-Sep-14 0:59
mveRichard MacCutchan26-Sep-14 0:59 
AnswerRe: Running Java Code Errors: Console Output Result Termination Pin
Member 1115477414-Oct-14 23:59
Member 1115477414-Oct-14 23:59 
Questionhow to read mifare card using java smratcardio? Pin
Member 1102461020-Sep-14 17:40
Member 1102461020-Sep-14 17:40 
QuestionRe: how to read mifare card using java smratcardio? Pin
Richard MacCutchan20-Sep-14 20:48
mveRichard MacCutchan20-Sep-14 20:48 
AnswerRe: how to read mifare card using java smartcardio? Pin
Member 1102461020-Sep-14 21:08
Member 1102461020-Sep-14 21:08 
GeneralRe: how to read mifare card using java smartcardio? Pin
Richard MacCutchan20-Sep-14 21:24
mveRichard MacCutchan20-Sep-14 21:24 
Questiondate validation Pin
20siva20-Sep-14 4:43
20siva20-Sep-14 4:43 
AnswerRe: date validation Pin
Richard MacCutchan20-Sep-14 20:48
mveRichard MacCutchan20-Sep-14 20:48 
GeneralRe: date validation Pin
20siva21-Sep-14 4:11
20siva21-Sep-14 4:11 
GeneralRe: date validation Pin
Richard MacCutchan21-Sep-14 7:48
mveRichard MacCutchan21-Sep-14 7:48 
QuestionEncoding / Decoding 7 bit User Data for SMS PDU (PDU Bit Packer) using java Pin
Member 1104686618-Sep-14 20:54
Member 1104686618-Sep-14 20:54 
AnswerRe: Encoding / Decoding 7 bit User Data for SMS PDU (PDU Bit Packer) using java Pin
Richard MacCutchan18-Sep-14 22:20
mveRichard MacCutchan18-Sep-14 22:20 
QuestionJSoup and XSoup "Couldn't parse query" Pin
DevvsBugs18-Sep-14 5:13
DevvsBugs18-Sep-14 5:13 
Generalhow to close the modal dialog so that it return to parent window by using button ? Pin
Member 1087484117-Sep-14 1:08
Member 1087484117-Sep-14 1:08 
GeneralRe: how to close the modal dialog so that it return to parent window by using button ? Pin
Richard MacCutchan17-Sep-14 2:43
mveRichard MacCutchan17-Sep-14 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.