Click here to Skip to main content
16,007,111 members
Home / Discussions / Java
   

Java

 
Questionurl download Pin
soumyassdas29-Jul-09 21:55
soumyassdas29-Jul-09 21:55 
AnswerRe: url download Pin
Nagy Vilmos29-Jul-09 22:23
professionalNagy Vilmos29-Jul-09 22:23 
AnswerRe: url download Pin
zhaonameloc30-Jul-09 4:26
zhaonameloc30-Jul-09 4:26 
GeneralRe: url download Pin
Nagy Vilmos30-Jul-09 4:47
professionalNagy Vilmos30-Jul-09 4:47 
Questioncan you help me? Pin
mehmetbilge29-Jul-09 1:55
mehmetbilge29-Jul-09 1:55 
AnswerRe: can you help me? Pin
Nagy Vilmos29-Jul-09 2:13
professionalNagy Vilmos29-Jul-09 2:13 
Questionre-instantiate ( or create new ) an object in an own method Pin
JvKsp28-Jul-09 15:30
JvKsp28-Jul-09 15:30 
AnswerRe: re-instantiate ( or create new ) an object in an own method Pin
Nagy Vilmos28-Jul-09 21:36
professionalNagy Vilmos28-Jul-09 21:36 
Can you learn to format your code, it makes it readable:
public class A extend abstractclass {
   //// data .... bla bla bla
   A() {
      //constructor ... bla bla bla
   }

   public void famousmet(blablabla) {

      // i would like to work anything like:
      this = new A(blablabla);
   }
}


You cannot assign anything to this, it represents the current instance of the class.
A similar approach would be to create a new copy of the class and return it to the caller. Would this work:
public A copyAndReturn(blahblah) {
   A copy = new A();
   copy.variable = this.variable;
   ...
   // blah blah

   return copy;
}




Panic, Chaos, Destruction.
My work here is done.

QuestionsetToolTipText in DefaultMutableTreeNode Pin
Kujtim Hyseni28-Jul-09 4:50
Kujtim Hyseni28-Jul-09 4:50 
AnswerRe: setToolTipText in DefaultMutableTreeNode Pin
Nagy Vilmos28-Jul-09 5:51
professionalNagy Vilmos28-Jul-09 5:51 
QuestionHow to round Pin
udch27-Jul-09 17:46
udch27-Jul-09 17:46 
AnswerRe: How to round Pin
harold aptroot27-Jul-09 18:17
harold aptroot27-Jul-09 18:17 
Question2D Image Animation Pin
NazarHussain27-Jul-09 3:05
NazarHussain27-Jul-09 3:05 
AnswerRe: 2D Image Animation Pin
Nagy Vilmos27-Jul-09 3:45
professionalNagy Vilmos27-Jul-09 3:45 
GeneralRe: 2D Image Animation Pin
NazarHussain27-Jul-09 3:59
NazarHussain27-Jul-09 3:59 
GeneralRe: 2D Image Animation Pin
Nagy Vilmos27-Jul-09 4:05
professionalNagy Vilmos27-Jul-09 4:05 
GeneralRe: 2D Image Animation Pin
NazarHussain27-Jul-09 20:01
NazarHussain27-Jul-09 20:01 
Questionarray string index [modified] Pin
nuttynibbles25-Jul-09 1:03
nuttynibbles25-Jul-09 1:03 
AnswerRe: array string index Pin
Kujtim Hyseni25-Jul-09 1:29
Kujtim Hyseni25-Jul-09 1:29 
GeneralRe: array string index Pin
fly90425-Jul-09 2:59
fly90425-Jul-09 2:59 
AnswerRe: array string index Pin
fly90425-Jul-09 2:56
fly90425-Jul-09 2:56 
QuestionEfficient way of printing elements in Java?! Pin
Rajdeep.NET24-Jul-09 8:36
Rajdeep.NET24-Jul-09 8:36 
AnswerRe: Efficient way of printing elements in Java?! Pin
fly90424-Jul-09 8:42
fly90424-Jul-09 8:42 
AnswerRe: Efficient way of printing elements in Java?! Pin
Nagy Vilmos27-Jul-09 3:37
professionalNagy Vilmos27-Jul-09 3:37 
AnswerRe: Efficient way of printing elements in Java?! Pin
EliottA5-Aug-09 9:12
EliottA5-Aug-09 9:12 

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.