• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Corrections Assignment 1.1

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, my newbieness is showing I'm stuck on my last correction I recieved the correction follows:
public static void main( String args [] )

Tradition calls for all method names to be immediately followed by a left paren and all array dereferences to be immediately followed by a left square bracket.
{
String xName = args [0] ;

Same song, second verse.
A reference, example, explanation, or a clue please.
------------------
www.carltonshomepage.com
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Change args [] to args[]
Change args [0] to args[0]
Warning:
Expect to get a lot of those "cryptic" responses when you submit your programs. And expect to get lots of nit pic.
I'm working through the assignments (presently on 1.4) and although I can successfully program all of them to work as desired, the real challenge is to survive and satisfy the nit pic. Don't let it frustrate you.
Allen
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic