Results 1 to 6 of 6
Thread: Help a NOOB please
- 10-11-2012, 09:51 PM #1
Member
- Join Date
- Oct 2012
- Posts
- 2
- Rep Power
- 0
- 10-11-2012, 10:07 PM #2
Member
- Join Date
- Oct 2012
- Posts
- 2
- Rep Power
- 0
Re: Help a NOOB please
package main;
import java.util.ArrayList;
public class Veelhoek {
int dimensie;
ArrayList<Punt> punten;
public Veelhoek() {
this.punten = new ArrayList();
this.punten.add(new Punt(0,0));
this.punten.add(new Punt(0,0));
this.punten.add(new Punt(0,0));
}
public Veelhoek(int dimensie) {
if (dimensie < 3) {
System.out.println("Ongeldig aantal hoeren pik");
dimensie = 3;
}
this.punten = new ArrayList(dimensie);
}
public void print() {
System.out.println("(" + this.punten + ")");
}
}
the Question is:
Maak in de klasse Veelhoek een methode print(). Deze druk eerst de dimensie van de veelhoek af. Vervolgens worden de coördinaten van ieder punt van die veelhoek afgedrukt. LET OP: Maak hierbij gebruik van de print() methode die je in opdracht A hebt gemaakt.
- 10-12-2012, 01:19 AM #3
Member
- Join Date
- Oct 2012
- Location
- Tempe, Arizona
- Posts
- 77
- Blog Entries
- 12
- Rep Power
- 0
Re: Help a NOOB please
Google Translate -- The question is:
Make the class Polygon a method print (). This pressure first dimension of the polygon. Then, the coordinates of each point of said polygon printed. CAUTION: Make use of the print () method that you have created is A.
- 10-12-2012, 10:04 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
Re: Help a NOOB please
If Jos is around he might be able to help (on the forum, not via skype) since he at least speaks the language.
But you will need to first put your code in [code] tags [/code] so that it stays formatted.
You will also need to say where you are having problems, including any compilation errors or exceptions and highlighting the line they occur on.
If the code does not produce the result you want you will need to say what result you see and what result you expect to see.
Any help provided here is in the thread, people will not generally help via PM, let alone email or Skype.Please do not ask for code as refusal often offends.
- 10-12-2012, 02:10 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
- 10-12-2012, 02:38 PM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
Similar Threads
-
another noob
By Blauv in forum New To JavaReplies: 15Last Post: 08-31-2012, 11:04 PM -
I am a super noob with a super noob question.
By LittleZoppo in forum Java AppletsReplies: 3Last Post: 04-27-2012, 03:50 AM -
noob needs help
By chris666uk1 in forum New To JavaReplies: 1Last Post: 10-22-2011, 11:55 PM -
Very noob, but need help!!!
By Guilbertda in forum New To JavaReplies: 2Last Post: 02-01-2010, 10:32 PM -
Help im a noob.. a super noob on java..
By critdevil in forum New To JavaReplies: 12Last Post: 03-07-2009, 03:17 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks