Thread: toString method
View Single Post
  #5 (permalink)  
Old 01-31-2008, 04:36 AM
apfroggy0408 apfroggy0408 is offline
Member
 
Join Date: Dec 2007
Posts: 26
apfroggy0408 is on a distinguished road
New question. How can i make a variable show two other variables with quotes in between. Here's what I'm trying to do.

Code:
addn = ((n1*d2) + (n2*d1)); addd = (d1*n2); out.println(+addn); out.println(+addd); addfrac = addn +"/" addd; <----- is where i'm trying to pull it off but it's not working
If it doesn't make sense, tell me and I'll try to explain better.

Last edited by apfroggy0408 : 01-31-2008 at 05:03 AM.
Reply With Quote