peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Write a whole game from machine code/assembly?

It's not useful because you pointed me towards Assembly and I want to do it from machine language its self.

Make up your dam mind! In your first post you asked about machine code or assembly. And once you get answer you reject it as unsuitable. People are getting fed up with your childish behaviour

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

how to find tomcat server log for godaddy.com

plz

tell me how to run server at godaddy.com...plz

Tomcat logs - answer

can you please tell me how to run servlet on godaddy.com server...i m having loit of problemss...

Why don't you search or ask on their forum. Sorry but we are not product support center, also these questions can be answered by your own search if you actually tried

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Closing thread as it is going off topic thanks to spoonlicker. You now have official warning about hijacking other people threads.

@Sundayy if you still need help with your work please create new thread and I'm sure people who been helping you and other who are willing to help will help.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If either of you(ashok5, saqib_604) bothered to look at the link I provided you would found that these and many other resources are already recommended there

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Top of this forum section Starting "Java" [Java tutorials / resources / faq] isn't that enough?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And I already told you that this parameter can be set up directly in constructor of Chunk, Phrase or Paragraph or it can be added at any point through processing by using method setLeading().

So what do you don't understand about it?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And the reply you got is for Java. So what is point of your reply?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Apparently iText is using little inconvenient name for line spacing "leading" based on PDF spec. So depending on where you want to change spacing Chunk/Phrase/Paragraph you can either use constructor to do it on start or a method setLeading() later in the process

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to upload JAR file into your mobile phone, from browse to location you pace it and click on it that should trigger installation

PS: In the future please search before posting, I'm sure that this was already asked on our forum

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to explain more in details as what you tried to do. Otherwise we may waste time on suggestions you did try. This also enable to see us if you made any mistakes.

PS: What did you gain by installing MySQL through WAMP. I see it as waste, since you are using Java therefore you will not use PHP and use of Apache HTTP server is questionable since Tomcat (Jetty, JBoss) is satisfactory in most cases

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Depends on the type of database you using. For example MySQL documentation here explain how you can set internationalization for server/database/table/column/string

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well what I see from code you are just simply asking for array of all files i the folder and then print their name with time stamp.
What I do not see is:

  • some sort of collection where at least file name with it time stamp is stored
  • any attempt to sort by time stamp
  • any attempt to print/move/copy "ONLY" last 12 modified files
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Transcendent and @spoonlicker it doesn't mean that you two can go on with abusing reputation system

@OTHERS no need to down repute either of them, both made mistakes hopefully they will learn from it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

KEEP IT PLEASANT

@Transcendent mind the language

@spoonlicker do not post if you do not know answer or if you do not have reasonable suggestion. Also do not post to attack people. Next time read carefully reply "It's ok. Thanks for trying." is nothing personal, Transcendent was actually polite thanking you for even looking at his problem.

Take this as unofficial warning, next misbehaviour will come with "reward" according to forum rules.

AndreRet commented: Whip them, yeah! +6
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you looked here you would found something like this

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you want to get some return values then you need to change "void" in methods you calling for whatever return type you need boolean/int/string/etc.

@javaAddict you been 1 second faster LOL

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. I do not understand why you didn't post in your post dating only 10 days back that is like 3-4 positions bellow this one at the moment
2. Are we magic ball readers that we know what have you written? No, so post your code...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And now that it's in the C++ forum, I can point out that the title of this thread talks about printing the reverse of a number, but the program computes the sum of its (decimal) digits. Which is right?

It will be down to whatever that program is doing. I had to reuse title of original thread where this was hijaked. Sorry for misleading info, but OP wasn't helpful with his descriptions, plus it was long time I had to do anything with C or C++ code (hence why it was moved to C and then to C++)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That will be down to fact that after character is read in there are no more commands to be executed :P

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You welcome

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Moved to new thread, and as javaAddict suggested you should have look at this tutorial JSP database connectivity according to Model View Controller (MVC) Model 2

PS: Would be nice if you read forum rules specially about keep it organized and not hijacking other people posts or reopening old threads....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Moved to C section

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Nope, wrong. As I said in my first post PRINT will be executed statement of inner for loop to print character and PRINTLN will follow after inner for loop to just print new line

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@enkidu75 please do not mark your posts as CODE SNIPPETS, this option is designer for people to posts and share working code and not for posting questions. Leave it to default FORUM THREAD.
Edited, now it is forum thread as is supposed to be.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That is fine you just need second print for new line after inner for loop

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You declared "input" inside of while loop therefore you cannot use it outside at this point. If you need it declare it before while loop, initialize it inside while loop and then you can use it outside

String input = "";
	while(!finished)
	{
		System.out.println("Please enter a list of exam scores (-1 to end input)");
		input = keyboard.next();
		if(input.equals(-1));{
			finished = true;
		}
	}
	String[] studs = input.split("\\s+");
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
for (initialization; termination; increment) {
    statement(s)
}

Meaning on what value you wish to start like int i = 0 , termination is like while statement i < 10 and increment can go either way like i++ or i-- .

So in your scenario you need to create nested for loops where the outside one will print new line (println) and inner will print character number of time on the line (print)

Does it make a sense?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Your lecturer had his reasons, but for one you do need get methods so you can do for instance printing. Set method still can be used, example you create object with only one value provided. How would you set the other one?

As for the second part in regards of array list set method, no you do not use it as in array. ArrayList set method is usually used to replace existing element in the position with new one.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please search the forum there was plenty of discussion in the past...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I guess I should keep quite today. To much paracetamol with lemon and honey tea :zzz:
Yes you correct, and lets put it simpler conversion is as char num = Character.toLowerCase(name.charAt(0));

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I do not understand why somebody like you Poopster01 with 5 previous posts decide to make a post as CODE SNIPPET instead of FORUM THREAD? What you been trying to achieve?
Thread edited, now it is FORUM THREAD.

As for your error, you are assigning character at position, if you remove ">" before numeric value, which is illegal, from string Name to integer Index2. However even after removal of that typo there it wouldn't work since you are forcing character into integer.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I did copy and compile that program, got following errors

C:\HomeProjects\Daniweb\WebCrawler.java:16: reference to List is ambiguous, both class java.util.List in java.util and class java.awt.List in java.awt match
    List    listMatches;
    ^
C:\HomeProjects\Daniweb\WebCrawler.java:76: reference to List is ambiguous, both class java.util.List in java.util and class java.awt.List in java.awt match
	listMatches = new List(10);

All what you need to do is import java.awt.List; as this application was written in 1998 where List was single class.

PS: Application doesn't close convenient way (click on X) so you will have to kill it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

set() and get() are for your PhoneBookENtry object add() is method of ArrayList that you need to use. There is set(int index, E element) but in your case you do not need it. Is this what you been asking about, or you had something else on your mind?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Your problem is that you misunderstood concept of ArrayList populated with an object type. You do not need to create array list for variable that is inside the object separately. Just create object and add it to collection.
Plus you are asked to create 5 phone book objects not ask them from user (you are complicating your own life there)

ArrayList<PhoneBookEntry> phoneBookEntries = new ArrayList<PhoneBookEntry>();
phoneBookEntry.add(new PhoneBookEntry("Peter", "0123456"));
phoneBookEntry.add(new PhoneBookEntry("Mike", "0123457"));
phoneBookEntry.add(new PhoneBookEntry("David", "0125456"));
phoneBookEntry.add(new PhoneBookEntry("Tom", "0123456"));
phoneBookEntry.add(new PhoneBookEntry("Mark", "0523456"));
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

change font size,color and style of what? (text is obvious, but where from and what you actually trying to achieve. will that application useful in anyway?)

1.is it possible?
>YES

2.can you tell my the instruction and structure of how to write the code???
> Read Beginning J2ME From Novice to Professional or Kicking Butt with MIDP and MSA: Creating Great Mobile Applications

3.whar r important things that i need and know??
> Get application requirement right

by the way. i'm using netbeans program
>It doesn't matter as long you can write Java code

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

He was dreaming about already at start of 2010 as far I know :)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Little of google search and you would find this nice entry from Code Ranch

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Just because you didn't get answer in 24 hours you feel like you are entitled to create another new thread?
2. Why are you misusing JSP for something that is not supposed to do? Do document manipulation in servlet and just forward necessary data to page view.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No you cannot. If these two midlets are your work then you can merge them in one and provide menu with options which one to run

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@BenzZz industry market is split mostly between IntelliJ IDEA and Eclipse. I know there are companies using also NetBeans, but this is just minority. The reason is that each of these IDEs is supporting large range of various Java frameworks

@brynFlew do more reading Eclipse lost it this year :twisted:
And yes I do use IntelliJ

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. You should look on PrepareStatement, it is better to use and less confusing when you need to submit more variables in the SQL query
2. You may want to change your query to use wildcards like where ChemicalName LIKE 'letter%' that will pick up only these that does starts with given letter. Read this for more info
3. To output data have look at this tutorial - JSP database connectivity according to Model View Controller (MVC) Model 2 that does show a basic idea of retrieving data in simple form of JSP or second with JSTL that makes it more readable

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just because you didn't get reply in 24 hours you think you are entitled to create new thread? Definitely not. Forum rules apply to you same as anybody else

Do not post the same question multiple times

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Jeff Cogswell sorry but I wouldn't use Swing capability as main driving example. There is very small number of desktop GUI application build in comparison to Java web development. Secondly I see you did not mention Android development. Missing this feature that is available to Eclipse and IntelliJ as professionals tools of choice does drop NetBeans for me from perfection of 10 at least to 7 if not lower.
My 5cent

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to look on Apache POI or similar library. In POI it has number of sub-APIs you can work with Word, Excel and others

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@ztini you better stop abusing reputation system before you get into trouble

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you read our forum rules carefully you will find out in Keep It Legal section that we ask

Do not ask for help to pursue any illegal activity including, but not limited to, hacking and spamming

Providing links to copyrighted material is illegal, therefore forbidden. End of discussion.

Thread closed

Rashakil Fol commented: Ironically, you just linked to copyrighted material in this post... +9
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi, this is not against the rules of these forums. See Member Rules for more information.

I wonder which is easier....reading API (as you suggest) or reading examples of code? Hrmm.....my guess is the later.

Not a rule but recommendation - We only give homework help to those who show effort as explained there...
Besides as you can see rhoxart faye haven't got time to come back and reply

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Joejackey you can save it for another student that will come back in couple of months asking same question. As you see original poster never came back with any questions or results.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Be glad you end up only with closed thread for insulting.
As for what you been supposed to do with UML and I wanted to do from you was

public class Person{
  private String firstName;
  private String lastName;
  private Date dob;
  private String gender;

  public Person(){}

  public Person(String firstName, Sting lastName, Date dob, String gender){
  //code_later
  }

  public String getFullName(){
  //code_later
  }

  public String getGender(){
  //code_later
  }
}

Now go and congratulate your self on making enemy of somebody who could and was willing to help.

Thread closed. You are welcome to create new thread, but you need to change your attitude and prove that you are working on assignment.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Forum rule - We only give homework help to those who show effort
2. You are insulting us with your lie about not being able to do this. No teacher would give his students assignments they cannot solve through knowledge they accumulated through their lessons. You are insulting in asking as to do your work instead of you.
3. I went through same stuff few years back at uni so do know how the games go.
4. I already told you what you have to do and what you already have there. If you so lazy to take down the names of classes, variables and methods well then bad for you as we will NOT help you if you are not cooperating and not doing what you are told to do.

END OF STORY