Recent Forum Posts
From categories:
page 1123...next »
Re: LOL
FrostyMacFrostyMac 28 Jan 2024 09:09
in discussion General / Open topic » LOL

hey fellas whats going on


I have no life.

Re: LOL by FrostyMacFrostyMac, 28 Jan 2024 09:09
Re: LOL
Helmut_pdorfHelmut_pdorf 08 May 2014 05:58
in discussion General / Open topic » LOL

You are a spammer - the admins should delete this post.


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

Re: LOL by Helmut_pdorfHelmut_pdorf, 08 May 2014 05:58
Re: LOL
chrysanthychrysanthy 22 Apr 2014 07:00
in discussion General / Open topic » LOL

Funny

Re: LOL by chrysanthychrysanthy, 22 Apr 2014 07:00

And, since you want to print the string repeatedly, no newline, try
System.out.print(str);

Re: Basic CS problem by BullUrgeBullUrge, 17 Jan 2014 07:14
Huor (guest) 26 Apr 2013 22:58
in discussion General / Open topic » Basic CS problem

You need to change your actual method signature

public String printStrings(String str, int number)

with this one

public void printStrings(String str, int number).

by Huor (guest), 26 Apr 2013 22:58
Basic CS problem
help please (guest) 12 Oct 2012 08:08
in discussion General / Open topic » Basic CS problem

Hey could somone help me with this computer science problem?
Here's the problem:
"Write a method called printStrings that accepts a String and a number of repetitions as parameters and prints that String the given number of times. For example, the call:
printStrings("abc", 5);

will print the following output:
abcabcabcabcabc"

Here's what I have so far:
"public String printStrings(String str, int number){
for(int i = 1; i <= number; i++){
System.out.println(str.length());

}
}"

Here's the error message I'm getting:
"Your code did not compile. Please read and correct the errors below.

Line 6

Your method must return a value. If your method has multiple paths of execution (such as if/else statements), every path must contain a return statement. Also beware of nested if/else statements that end with an 'else if'.
missing return statement}
^
1 error"

I'm not sure why it's asking for a return statement when in the instructions it wants me to print of the string. Could someone help?

Basic CS problem by help please (guest), 12 Oct 2012 08:08
april (guest) 02 Aug 2012 07:29
in discussion General / Improving the site » General Programming Chat Forum

iuiouo

by april (guest), 02 Aug 2012 07:29
april (guest) 02 Aug 2012 07:25
in discussion General / Improving the site » General Programming Chat Forum

please help me regarding the recursion in c. :) thanks :)

by april (guest), 02 Aug 2012 07:25
nonhsheilagank (guest) 20 Dec 2011 19:46
in discussion General / Improving the site » General Programming Chat Forum

how to display a page that has been in enscrypt. thank's

by nonhsheilagank (guest), 20 Dec 2011 19:46

I definitely don't know anything about this subject, and I doubt anyone does among this small community…

Re: 3d image producer by Mapar007Mapar007, 26 Aug 2009 19:33

Okay, so if you where to have a picture, and then have a certain thing in the image that you wanted to pick up, for example, a piece of paper, with a black W on it, and find its angles and where it is in the image. then, you can use it to do something like this:

Anyone want to help, or get me started?

3d image producer by jnesselrjnesselr, 25 Jun 2009 18:25
Re: MindMaster
jnesselrjnesselr 25 Jun 2009 18:20
in discussion Projects / Individual » MindMaster

I did some major bug fixing in my JRE, because it was malfunctioning for some reason. I am going to start on another project now, and could possible use your help.

Re: MindMaster by jnesselrjnesselr, 25 Jun 2009 18:20
Re: MindMaster
Mapar007Mapar007 17 Jun 2009 10:42
in discussion Projects / Individual » MindMaster

Whoops… Sorry. I thought the Gnu JRE could be cross-compiled. My apologies.

Re: MindMaster by Mapar007Mapar007, 17 Jun 2009 10:42
Re: MindMaster
jnesselrjnesselr 15 Jun 2009 23:24
in discussion Projects / Individual » MindMaster

I told you!! I run a mac. Mac has its own JRE.

Re: MindMaster by jnesselrjnesselr, 15 Jun 2009 23:24
Re: MindMaster
Mapar007Mapar007 15 Jun 2009 04:25
in discussion Projects / Individual » MindMaster

That's the point. Java is evolving. The java collections framework is new, not deprecated.

(yes I can rewrite the code, with loss of readability, but I need the time, which I don't have during the exams)

EDIT: looked it up. The copyOf method is available only on JRE 1.6 and higher. It's only 5 lines so I can just copy-paste it and modify my code.

(It's your JRE that is deprecated, not my code :) )

Re: MindMaster by Mapar007Mapar007, 15 Jun 2009 04:25
Re: MindMaster
jnesselrjnesselr 14 Jun 2009 23:06
in discussion Projects / Individual » MindMaster

NO, because I am running on a mac. The entire point of java is to be a client side programming language that is cross platform. In other words, you should use the lowest JRE you think your clients will run. Another option, is to use:

String version = System.getProperty("java.version");

Then use the different versions to not use deprecated methods or whatever.

Re: MindMaster by jnesselrjnesselr, 14 Jun 2009 23:06
Re: MindMaster
Mapar007Mapar007 13 Jun 2009 10:51
in discussion Projects / Individual » MindMaster

Actually, for the largest part of newly created java code (at least the bigger projects) you need JRE 1.5 or higher, for the generic types. CopyOf works with ugly object casts in the lower versions, so I suggest you upgrade your JRE (for your own good if you want to ease your coding). I'll check if I find some time to fix it for you (exams right now, so…).

EDIT:

CopyOf is just a wrapper for System.arraycopy(). Do you have that method in your JRE libraries?

Re: MindMaster by Mapar007Mapar007, 13 Jun 2009 10:51
Re: MindMaster
jnesselrjnesselr 10 Jun 2009 00:12
in discussion Projects / Individual » MindMaster

Yes, The Arrays.copyOf is the problem. Use a different method, so that many more JRE's can handle it.

Re: MindMaster by jnesselrjnesselr, 10 Jun 2009 00:12
Re: MindMaster
Mapar007Mapar007 07 Jun 2009 14:17
in discussion Projects / Individual » MindMaster

Extract the jar file. It's inside :)

EDIT: use a standard zip-extractor program

Re: MindMaster by Mapar007Mapar007, 07 Jun 2009 14:17
Re: MindMaster
jnesselrjnesselr 04 Jun 2009 00:40
in discussion Projects / Individual » MindMaster

yes. Source?

Re: MindMaster by jnesselrjnesselr, 04 Jun 2009 00:40
page 1123...next »
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License