Click here to Skip to main content
15,881,764 members
Home / Discussions / Java
   

Java

 
AnswerRe: Distribute software that uses Java Pin
Dave Kreskowiak8-Jul-22 11:30
mveDave Kreskowiak8-Jul-22 11:30 
GeneralRe: Distribute software that uses Java Pin
Valentinor8-Jul-22 19:32
Valentinor8-Jul-22 19:32 
GeneralRe: Distribute software that uses Java Pin
Dave Kreskowiak8-Jul-22 19:40
mveDave Kreskowiak8-Jul-22 19:40 
GeneralRe: Distribute software that uses Java Pin
Valentinor8-Jul-22 21:51
Valentinor8-Jul-22 21:51 
GeneralRe: Distribute software that uses Java Pin
Dave Kreskowiak9-Jul-22 5:43
mveDave Kreskowiak9-Jul-22 5:43 
Questionsolve the error Pin
Member 156672428-Jun-22 21:02
Member 156672428-Jun-22 21:02 
RantRe: solve the error Pin
Richard Deeming8-Jun-22 21:19
mveRichard Deeming8-Jun-22 21:19 
AnswerRe: solve the error Pin
Richard MacCutchan8-Jun-22 22:56
mveRichard MacCutchan8-Jun-22 22:56 
Let's start by formatting the code and adding ;line numbers so it is actually readable. You can now clearly see that at the very least you have invalid lines at lines numbers 5 and 22. I assume these are supposed to be comment lines so require a "//" at the beginning. You also have mixed capitalisation on your setters and getters.
So start by fixing those and see what happens.


Java
  1  public class student{
  2      private int ID;
  3      private String Name;
  4  
  5      Student class constructor
  6      student(int id, String name){
  7          this.ID = id;
  8          this.Name = name;
  9      }
 10      public int getid(){
 11          return this.ID;
 12      }
 13      public String Getname(){
 14          return this.Name;
 15      }
 16      public void SETid(int i){
 17          this.ID = i;
 18      }
 19      public void sETNAme(String n){
 20          this.Name=n;
 21      }
 22      method to display data
 23      public void display() {
 24          System.out.println("Student id is: " + id + " "
 25              + "and Student name is: "
 26              + Name;
 27          );
 28          System.out.println();
 29      }
 30  }

AnswerRe: solve the error Pin
Sakshi Jain 202226-Jun-22 20:59
Sakshi Jain 202226-Jun-22 20:59 
GeneralRe: solve the error Pin
Richard MacCutchan26-Jun-22 21:41
mveRichard MacCutchan26-Jun-22 21:41 
GeneralRe: solve the error Pin
Peter_in_278026-Jun-22 22:19
professionalPeter_in_278026-Jun-22 22:19 
QuestionRunnable as a new object? Pin
Member 156629325-Jun-22 13:24
Member 156629325-Jun-22 13:24 
AnswerRe: Runnable as a new object? Pin
Richard MacCutchan5-Jun-22 21:27
mveRichard MacCutchan5-Jun-22 21:27 
AnswerRe: Runnable as a new object? Pin
Gerry Schmitz6-Jun-22 13:47
mveGerry Schmitz6-Jun-22 13:47 
AnswerRe: Runnable as a new object? Pin
englebart7-Jul-22 16:10
professionalenglebart7-Jul-22 16:10 
QuestionConnect morpho biometric device with jav Pin
Member 156609363-Jun-22 3:10
Member 156609363-Jun-22 3:10 
AnswerRe: Connect morpho biometric device with jav Pin
Richard MacCutchan3-Jun-22 9:06
mveRichard MacCutchan3-Jun-22 9:06 
Questionissue starting my ksql-server Pin
james michael May202225-May-22 13:20
james michael May202225-May-22 13:20 
AnswerRe: issue starting my ksql-server Pin
Richard MacCutchan25-May-22 22:03
mveRichard MacCutchan25-May-22 22:03 
QuestionHash Table implementation Pin
Member 156289598-May-22 18:52
Member 156289598-May-22 18:52 
AnswerRe: Hash Table implementation Pin
Richard Deeming8-May-22 21:27
mveRichard Deeming8-May-22 21:27 
AnswerRe: Hash Table implementation Pin
Richard MacCutchan8-May-22 21:43
mveRichard MacCutchan8-May-22 21:43 
QuestionHi guys my code is not compiling as its showing cannot find symbol please help Pin
Member 1561125322-Apr-22 4:48
Member 1561125322-Apr-22 4:48 
AnswerRe: Hi guys my code is not compiling as its showing cannot find symbol please help Pin
Dave Kreskowiak22-Apr-22 4:53
mveDave Kreskowiak22-Apr-22 4:53 
AnswerRe: Hi guys my code is not compiling as its showing cannot find symbol please help Pin
zemiak1231-May-22 13:06
zemiak1231-May-22 13:06 

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.