• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Changing array I think and the print statement

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to change from Syste.out.printf() too println() on main program.

I also want to have not to rely on just five records in afile, have the ooption of having five or a 1000 without having to set the field vaule, is these possible?

 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

mike statham wrote:I want to change from Syste.out.printf() too println() on main program.


So do it. I don't understand the question.

I also want to have not to rely on just five records in afile, have the ooption of having five or a 1000 without having to set the field vaule, is these possible?


Yes. Have a look at ArrayList.

BTW, please split up that enormous line in your code. It really screws up the windowing software here.

Winston
 
Marshal
Posts: 80140
418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why haven’t you got a Student class which encapsulates name and marks? Trying to run two arrays in parallel is error-prone and not good design.
You can have as many lines as you like, but they are a lot easier to add to a List than to an array.
Keep printf(); it is more versatile than println().
 
Get off me! Here, read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic