Help with writing drum parts, am stuck with one kit
Hi,
Im having trouble accesing different drum sounds. No problem with dragging loops (software or real) into tracks, but when i select software when i create new track, then click drum kit in info pane, i get a selection of a few kits rock/pop etc.
But when i check out the sounds along the keyboard i get the same sounds for all kits. And the sounds are a bit odd, mostly drum sounds but there is a whistle in there & odd percussion stuff.
cant work out where im stuffing up
cheers
Rob
It's been a while since I went through every kit, but as I recall there is (for instance) a triangle on every A4. IOW, no matter which kit you pick you'll get the same sound for A4. Some of the different samples are kind of buried, as I recall.
~~HangTime V1.9.9.8 [Will Compute for Food] %-)>
Similar Messages
-
Need Help with One to One Mapping in SQL
Can aynone please design me tables in Oracle .
I want to have a two tables with one to one mapping .
Following is the scenario.
I have an Employee object and a Parking Space Object. The have a one to one relation i.e., an employee will always be associated to only one parking space, that parking space should not be associated to any other employee.
It would be a great help .sb92075 wrote:
We don't do homework assignments.I used to do my own... seems like a novel concept now-a-days :) -
2 minor issues need help with one BBM and one email
I am hoping someone can help with this
the BBM issue is one of my contacts that has the z10 doesn't show option for my to video chat with him all my other contacts do and he has it displayed on his side and all his options are set same as mine
second question is since i set up my activesync email it has pushed a password on my phone everytime it goes to sleep and i go to options and cannot turn off the device password option.
Hope someone has some ideasIt sounds like the account you connected to for ActiveSync has an IT policy that requires the password. You can't get around it. You'd have to talk to them.
For BBM, have you verified the PIN is correct on each end? Can you BBM directly with this person? You both have to be on wifi, as well.
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you! -
I need help with one chapter of the Logic training series book...
I've been studying from the Apple Pro training series manual - Logic pro 9, Professional Audio Production. I'm keen to sit the exam asap, and move onto the next book in the series, but may need a little coaching on one chapter - namely Appendix A, 'Using External MIDI devices.' I've never used Logic in this way, and only have one MIDI piano to work with at home. Therefore recreating what is required in the chapter, and getting my head around the material is proving difficult. Therefore I have two questions - 1) Will this section be tested in the exam? And if so, 2) Is there anyone in the Berkshire / Surrey / West London area who could help me with a quick lesson? (I'd be prepared to pay, obviously) I've been using Logic for a number of years, so would prefer not to have to spend serious money on a full blown course.
I'm keen to sit the exam over half term if possibe - w/c 4th June 2012.
Thanks for your help.
ArronHi
Appendix A covers setting up Audio MIDI Setup for a "real" external Synth, and then getting Logic to create a track to send MIDi out to that Synth. Finally, you set up the Program names.
You should be able to go through the first part (and do it) providing you have some kind of MIDI Interface showing up in AMS. Create a "dummy" MIDI 'Synth' and cable it up.
Once done, this 'dummy' synth will appear in Logic's Library for External Instrument tracks. Without an real synth you will not be able to hear any results.
You could run through the process for setting up the program names, but without something actually attached, you will not be able to hear/see the changes.
You could run in 32bit mode and use the "Software" quicktime synth, or maybe sort something using an IAC bus, but frankly, that's more likely to confuse the **** out of you at this stage.
HTH
CCT -
Hi evryone i created a menu in flash, the actionscript code
is:
// -- funciones
MovieClip.prototype.TLonRollOver = function() {
formato.color = 0x666666;
this.texto.setTextFormat(formato);
MovieClip.prototype.TLonRollOut = function() {
formato.color = 0x666666;
this.texto.setTextFormat(formato);
MovieClip.prototype.TLonRelease = function() {
// -- restaura todos los botones a su estado original
for (i=0; i<menu.length; i++) {
item = eval("boton_mc"+i);
item.enabled = true;
item.useHandCursor = true;
formato.color = 0x666666;
item.texto.setTextFormat(formato);
// -- carga el clip de película en un clip contenedor
holder_mc.loadMovie(this.pelicula);
// -- deshabilita el botón pulsaso
this.enabled = false;
// -- desahbilita el cursdor en forma de mano
this.useHandCursor = false;
// -- para indicar que el botón se encuentra
desahbilitado
// -- se cambia el color de texto por uno más tenue.
formato.color = 0xCCCCCC;
this.texto.setTextFormat(formato);
// -- Formato
formato = new TextFormat();
formato.font = "Verdana";
formato.size = 18.5;
formato.color = 0x000000;
// -- Menú
menu = new Array();
menu[0] = {titulo:"Inicio", pelicula:"inicio.swf"};
menu[1] = {titulo:"Terapias", pelicula:"terapias.swf"};
menu[2] = {titulo:"Terapeutas", pelicula:"terapeutas.swf"};
menu[3] = {titulo:"Tienda", pelicula:"tienda.swf"};
menu[4] = {titulo:"Noticias", pelicula:"news.swf"};
// -- clip contenedor
this.createEmptyMovieClip("holder_mc",
this.getNextHighestDepth());
holder_mc._x = 0;
holder_mc._y = 0;
// -- Montar Menú
formato.color = 0x666666;
for (i=0; i<menu.length; i++) {
// --se crean nuevas instancias del clip vinculado
attachMovie("boton_mc", "boton_mc"+i,
this.getNextHighestDepth());
anterior = eval("boton_mc"+(i-1));
item = eval("boton_mc"+i);
item.pelicula = menu
.pelicula;
item.texto.autoSize = true;
item.texto.text = menu.titulo;
item.texto.setTextFormat(formato);
// -- posicionamiento x-y
item._y = 10;
if (i == 0) {
item._x = 10;
} else {
item._x = anterior._x+anterior._width;
// -- eventos de botón
item.onRollOver = this.TLonRollOver;
item.onRollOut = this.TLonRollOut;
item.onRelease = this.TLonRelease;
well, i need to know how i can link each option with an URL
and the target is in other frame
Please help me!!!!hi
still i am not sure what do u want to achieve?
if u wanna create u r own toolbar then try something like this, but while creating buttons then u have to use codes too.
There is an easier way to get the "toolbar" you want to have.
1. Build a mmb with all the functions you want to have both in the menu and in the toolbar.
2. For each menuitem, you can define in the properties
- If it should be shown in the menu, then set "Visible In Menu" to Yes
- If it should be shon in the horizontal toolbar (or vertical toolbar), then set "Visible In Horizontal Menu Toolbar" ("Visible In Vertical Menu Toolbar") to Yes
- For showing an item in a toolbar, you will have to set the property "Icon Name" additionally to the name of an existing icon (the same way you do for buttons)
3. Compile and generate the menu
4. Build a form and attach your menu as Menu-Module in the properties of the form.sarah -
hi ...i got a laptop from friend 9 months ago from us ....its g460 with windows 7 home premium os...for practising sharepoint tech: i installed windows 7 ultimate 1 month back and after that i tried to install .net and sharepoint s/w with no use...after that whenever i start its taking neary 15 mins to start itself and then its saying windows s7 is not genuine...si i called up service center and they said that s/w instllation they dont cover under warranty ..and they are charging around sme 2000 bucks to install windows 7 premium and said that we will also provide one touch recovery...
cant i with online support do the one touch recovery and get back the laptop in the previous state?? what is this one touch recovery all about?? is it only for data ?? thanks in advance.hey durgamavu,
Do check the following >>
http://consumersupport.lenovo.com/%28S%28wjgnfm55be4kejqew1t0nj55%29%29/lk/en/HintsandTips/hints_sho...
WW Social Media
Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
Follow @LenovoForums on Twitter!
Have you checked out the Community Knowledgebase yet?!
How to send a private message? --> Check out this article. -
Help with one of my first progys
the fallowing code is for an intro to comp sci class I'm taking. I'm very new to java and I'm just having a small issue with this code
when it spits out the output for the final letter grade variable:sLettergrade it is many times incorrect or just spits out a blank but it's also sometimes right.
after quite some time trying to figure it out I have resorted to this any help would be fantastic!
package studentgrades;
import java.io.*;
//@author Preston Taylor
public class Main {
//@param args the command line arguments
public static void main(String[] args) {
//this block sets up the program for user input
InputStreamReader charReader = new
InputStreamReader(System.in);
BufferedReader keyboard = new
BufferedReader(charReader);
try{
//variable declaration
String sInput= ""; /*only used for input that requires prasing.
*must be parsed out of and decalred to another varible
*immediately so it can be used at the next input*/
String sLoop=""; //variable used to continue loop
String sFirstname="";
String sLastname="";
String sLettergrade="";
int iStudentnumber=0;
double dHomework=0;
double dQuiz=0;
double dMidterm=0;
double dFinalscore=0;
double dGradepercent=0; //final grade percentage after calulations
//the next do statement is the main loop of the program
//that the program comes back to if the user decides to continue
do{
//inquiry to the user
System.out.println("What is the Student number?");
sInput=keyboard.readLine();
iStudentnumber=Integer.parseInt(sInput);
System.out.println("Student first name?");
sFirstname=keyboard.readLine();
System.out.println("Student last name?");
sLastname=keyboard.readLine();
System.out.println("What is the homework average percent?");
sInput=keyboard.readLine();
dHomework=Double.parseDouble(sInput);
System.out.println("What is the Quiz average percent?");
sInput=keyboard.readLine();
dQuiz=Double.parseDouble (sInput);
System.out.println("What is the Midterm score percent?");
sInput=keyboard.readLine();
dMidterm=Double.parseDouble(sInput);
System.out.println("What is the Final test score percent?");
sInput=keyboard.readLine();
dFinalscore=Double.parseDouble(sInput);
//equations to figure final grade
dHomework=dHomework*.4;
dQuiz=dQuiz*.2;
dMidterm=dMidterm*.2;
dFinalscore=dFinalscore*.2;
dGradepercent=dHomework+dQuiz+dMidterm+dFinalscore;
//the fallowing if statements assign a letter grade to the percentage
if (dGradepercent >= 90)
sLettergrade="A";
if (dGradepercent < 90 && dFinalscore >=80)
sLettergrade="B";
if (dGradepercent < 80 && dFinalscore >=70 )
sLettergrade="C";
if (dGradepercent < 70 && dFinalscore >= 60)
sLettergrade="D";
if (dGradepercent < 60)
sLettergrade="FAILURE";
//the fallowing is readout to the user
System.out.println(sLastname + ", " + sFirstname + " with a student id of " + iStudentnumber);
System.out.println("Homework: " + dHomework);
System.out.println("Quizzes: " + dQuiz);
System.out.println("Midterm: " + dMidterm);
System.out.println("Final Test " + dFinalscore);
System.out.println(" ");
System.out.println("Final average: " + "%" + dGradepercent + " Grade: " + sLettergrade);
do{ //the fallowing loop covers incompetent user handling
System.out.println("would you like to enter another student? y or n");
sLoop= keyboard.readLine();
if (!((sLoop.equals ("y")) || (sLoop.equals ("Y")) || (sLoop.equals ("n")) || (sLoop.equals ("N"))))
System.out.println("ERROR: you typed something incorrect try again");
//the below while statement loops back to the do statement above if the user is retarded or has fat fingers
}while (!((sLoop.equals ("y")) || (sLoop.equals ("Y")) || (sLoop.equals ("n")) || (sLoop.equals ("N"))));
//the next while statement handles exiting and looping the program
}while ((sLoop.equals ("y")) || (sLoop.equals ("Y")));
catch (IOException e){
System.out.print("error "+ e.getMessage()); //error handling
}thanks, Prestonif you're testing a range, shouldn't the variables be the same?
if (dGradepercent < 90 && dFinalscore >=80)
if (dGradepercent < 90 && dGradepercent >=80)
^^^ -
Help with One to One Can not Log On
I do not know where to post this question, if I am in the wrong place I apologize in advance. I have not been able to sign into my One to One account for the last two days. It is not my computer because I tried on two different computers and on my Iphone. It takes my password and then it says Loading One to One, but it just keeps churning, for hours on end. I called my apple store and they could not help me, they told me to call Apple Care, who also told me that they could not help me, that it was up to the stores to help me because One to One was a store thing. So I called my store back again and waited on hold for over an hour. I then tried another store in my area, and they once again told me that it was not their jurisdiction.
There seems to be a problem with he account, not the software or the computers. I cleared the caches, restarted the computers etc. But I do not know who to go to with this problem because One to One seems to be no ones jurisdiction. Any advice would be most welcomed.
Thank youCan you go to the Apple tore and try logging on there? If there's a problem they are right there to help you.
-
I am disabled and need help with one to one service that I paid for
Hi there,
I brought my computer last year in Aug. I signed up for the one year of one -to - one service. Here is the issue, I'm disabled, and things didn't go according to plan. I am housebound. If I get out once a week, that's pretty much it, and usually, I have a lot of Dr apts and can't do both things in the same day, too much sitting up in awkward positions for my back to handle (with 7 herniated discs, crushed spinal cord, and 3 tumors in my spinal canal). So, from Aug to today, I have been out of the house a total of 30 times, all for Dr appointments.
I have yet to be able to use the one-to-one that I paid for. I talked to a manager and he was very nice and granted me an extra 30 days. Is there anything that I can do to get a bit more time to use it? Even if that is just till October, anything? I feel dumb for getting it, but, had no way to know my back would get worse...
Thanks
DanSorry if I chose the wrong place to put this item, but, I really wasn't sure where to post it. If the moderator would like to move it to a more appropriate spot, by all means.
Thanks again
Dan -
Can you help with one more iCal problem?
Thanks to this forum,I finally got rid of the double entries. But I must still have something missing because when I post one device, it does not enter on the other. I know iCloud is turned on in Settings on my iPad and iCal is turned on. Each are working separately, just not together. What am I not doing?
You don't have any Shape layers, so you won't have any fill or stroke options. If you had a rectangle and line layer, you have either deleted them, or caused them to be rasterized. That would also remove any Fill and Stroke options from the Options bar.
The 'little camera' at the bottom of the Tool bar, is the Quick mask icon. Clicking on it toggles between standard and Quick mask modes, like you said. Clicking on it is exactly the same as hitting the q key. It has absolutely nothing to do with Shape layers.
What you need to do now, is regroup. What exactly are you trying to achieve, and what do you expect to see in your Workspace? You will have noticed that your workspace is context sensitive. It automatically changes according to what tools are selected, or what function you are using at any particular time. -
Help with one query ( Please reply)
Oracle version : 11.2.0.2.0
I have a table with the following set of rows
with Table_dm AS
( select 1 month_no ,'wk1' week, 120 DM_AMT,300 GRoss_Amt,4 Week_no, 12 Gross_qty,1000 dm_adj_total from dual
UNion all
select 1 month_no ,'wk2' week,120 DM_AMT,300 GRoss_Amt,4 Week_no, 12 Gross_qty,1000 dm_adj_total from dual
union all
select 1 month_no ,'wk3' week,120 DM_AMT,300 GRoss_Amt,4 Week_no, 12 Gross_qty,1000 dm_adj_total from dual
union all
select 1 month_no ,'wk4' week,120 DM_AMT,300 GRoss_Amt,4 Week_no, 12 Gross_qty,1000 dm_adj_total from dual
union all
select 2 month_no ,'wk5' week,200 DM_AMT,400 GRoss_Amt,5 Week_no, 20 Gross_qty,1000 dm_adj_total from dual
UNion all
select 2 month_no ,'wk6' week,200 DM_AMT,400 GRoss_Amt,5 Week_no, 20 Gross_qty,1000 dm_adj_total from dual
union all
select 2 month_no ,'wk7' week,200 DM_AMT,400 GRoss_Amt,5 Week_no, 20 Gross_qty,1000 dm_adj_total from dual
UNion all
select 2 month_no ,'wk8' week,200 DM_AMT,400 GRoss_Amt,5 Week_no, 20 Gross_qty,1000 dm_adj_total from dual
UNion all
select 2 month_no ,'wk9' week,200 DM_AMT,400 GRoss_Amt,5 Week_no, 20 Gross_qty,1000 dm_adj_total from dual
So the data in Grid will be like this
month_no
week
DM_AMT
GRoss_Amt
Week_no
Gross_qty
dm_adj_total
DM_ADJ_Final
1
wk1
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
=1
wk2
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
1
wk3
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
1
wk4
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
2
wk5
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk6
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk7
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk8
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk9
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
I need to calculate DM_ADJ_Final where calculation for DM_ADJ_Final will be like
= dm_adj_total * gross_amt/ (gross_amt (where month_no =1 ) + gross_amt (where month_no =2 )) ( Please refer DM_ADJ_Final column above for calculation with value )You apparently have (or intend) an association between rows where month_no = 1 and month_no = 2.
But what is that relationship? Is the month 2 row always 4 weeks later than the month 1 row?
That relationship needs to be spelled out exactly.
month_no
week
DM_AMT
GRoss_Amt
Week_no
Gross_qty
dm_adj_total
DM_ADJ_Final
1
wk1
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
=1
wk2
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
1
wk3
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
1
wk4
120
300
4
12
1000
1000 * 300 /(300+400) = 428.57
2
wk5
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk6
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk7
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk8
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
2
wk9
200
400
5
20
1000
1000 * 400 /(300+400) = 571.42
I need to calculate DM_ADJ_Final where calculation for DM_ADJ_Final will be like
= dm_adj_total * gross_amt/ (gross_amt (where month_no =1 ) + gross_amt (where month_no =2 )) ( Please refer DM_ADJ_Final column above for calculation with value ) -
Post Author: Don
CA Forum: Formula
Hello Everyone,
I need some assistance. I have a one to many relationship...
Example...
TABLE 1
FieldName = RecordID
DATA, RecordID= 10
TABLE 2, linked one to many to RecordID in TABLE1
FieldNames = RecordID, Name, ContactType
DATA, RecordID= 10, Name= Tom, ContactType= Sales
DATA, RecordID= 10, Name= Dan, ContactType= Service
DATA, RecordID=10, Name= Jon, ContactType= Sales
What I am looking for is to create a formula that would return something that looks like this....
Sales Contact Name
Tom, Jon
So... I want to grab all the "Contact Types" of "Sales" from TABLE 2 then pass in the "Name" field from TABLE 2 and if there is more then one "Name" of the sames "Contact Type" then comma seperate it.
And... I don't want to do this in a sub report. I do know I can make a sub report and return both values but to my knowledge the values would be on top of one another and not beside each other comma separated.
Ideas?Post Author: Don
CA Forum: Formula
That may work using a subreport...
I think the root of this my problem is the fact I have a table relationship, left outer... one to many join. So even if I drop your suggested formula in my report I still get repeating record details with blank names where all the other contact types would be.
Ticket Number Contact Name Contact Type
111111 Dan, Jim Sales
111111 <---- where the other contact type appear
111111 <---- where the other contact type appear
I was trying to avoid having to create several subreports for each data field I need on the report. However, I think I can use your formula in a subreport to allow the data to display in a comma separated row rather then a vertical list.
I thought about suppressing but that won't work because I have other contact types I need to list.
Thank you for responding. -
Hi everyone,
i have a table with three columns, where in some cases, there is NULL in name column for a specific time and for a specific id.
I need to fill the missing names, with the first previous occurence. I dont know if it possible to do so within one select.
thanks for any ideas
DATA table
id, mdate, name
15, '1.7.2008 15:00', 'A'
15, '28.7.2008 18:00', 'B'
4, '1.8.2008 15:00', 'G'
5, '1.8.2008 15:00', ''
3, '1.8.2008 18:00', 'G'
15, '5.8.2008 15:00', ''
15, '5.8.2008 17:00', ''
3, '10.8.2008 18:00', ''
15, '8.8.2008 07:00', 'F'
15, '9.8.2008 07:00', ''having data above,
for example for id = 15 i would like to fill the name column with this names.
15, '5.8.2008 15:00', 'B'
15, '5.8.2008 17:00', 'B'
15, '9.8.2008 07:00', 'F'
etc
so the result of the select should be:
15, '1.7.2008 15:00', 'A'
15, '28.7.2008 18:00', 'B'
4, '1.8.2008 15:00', 'G'
5, '1.8.2008 15:00', ''
3, '1.8.2008 18:00', 'G'
15, '5.8.2008 15:00', 'B'
15, '5.8.2008 17:00', 'B'
3, '10.8.2008 18:00', 'G'
15, '8.8.2008 07:00', 'F'
15, '9.8.2008 07:00', 'F'
select 15 as id, to_date('1.7.2008 15:00','dd.mm.yyyy hh24:mi') as mdate, 'A' as name from dual union all
select 15, to_date('28.7.2008 18:00','dd.mm.yyyy hh24:mi'), 'B' from dual union all
select 4, to_date('1.8.2008 15:00','dd.mm.yyyy hh24:mi'), 'G' from dual union all
select 5, to_date('1.8.2008 15:00','dd.mm.yyyy hh24:mi'), null from dual union all
select 3, to_date('1.8.2008 18:00','dd.mm.yyyy hh24:mi'), 'G' from dual union all
select 15, to_date('5.8.2008 15:00','dd.mm.yyyy hh24:mi'), null from dual union all
select 15, to_date('5.8.2008 17:00','dd.mm.yyyy hh24:mi'), null from dual union all
select 3, to_date('10.8.2008 18:00','dd.mm.yyyy hh24:mi'), null from dual union all
select 15, to_date('8.8.2008 07:00','dd.mm.yyyy hh24:mi'), 'F' from dual union all
select 15, to_date('9.8.2008 07:00','dd.mm.yyyy hh24:mi'), null from dualTry this:
update tab t1
set t1.name = ( select t2.name
from tab t2
where t2.id = t1.id
and t2.mdate = ( select max( t3.mdate )
from tab t3
where t3.mdate < t1.mdate
and t3.id = t2.id ) )
where t1.name is null; -
Catalyst - HELP with one page not showing in the design window.
When using Catalyst, I can only see the html on one of my pages. The design tab is showing a blank page. Does anyone know how to fix this?
You can setup a page branch that responds to your specific button and within that branch definition you can specify page items and values to be set when that branch fires.
Is there a specific reason that you want the values passed on the URL? That's not really required to make ApEx function properly.
Earl -
Help with CIS Lab - Flesch Readability Index
I am a first year computer science student and I need some help with one of our projects. It is working on the Flesch Readibility Index.
We have to create three classes: word, sentence and Flesch (which will include the main method)
The word class has to have the methods countSyllables, getWord and isVowel. We already did that.
The sentence class has to have methods countWords, and nextWord.
We have countWords but are having a lot of problems with nextWord.
As of right now when we call the nextWord() method from the main method, we are given only the first or last word in the sentence. I'm using a string tokenizer to do this.
I need to somehow figure out how to make the method where when it is called it gives one word, remembers the word it gave and then when called again gives the next word because the method cannot be passed any value. It would be a lot easier if I could pass what word I wanted and then just use an array.
Here is what my partner and I have so far:
import java.util.*;
import java.io.*;
* Write a description of class Sentence here.
* @author (your name)
* @version (a version number or a date)
public class Sentence
String sentence;
private int tokenCount;
public Sentence(String s)
sentence = new String(s);
public int countWords()
int numWords = 0;
boolean prevWhitespace = true;
for (int i = 0; i < sentence.length(); i++)
char c = sentence.charAt(i);
boolean currWhitespace = Character.isWhitespace(c);
if (prevWhitespace && !currWhitespace)
numWords++;
prevWhitespace = currWhitespace;
return numWords;
public Word nextWord()
StringTokenizer tokens = new StringTokenizer(sentence, " .,", false);
Word test = new Word("");
tokenCount = tokens.countTokens();
for (int i = 0; i < tokenCount; i++)
test = new Word(tokens.nextToken());
return test;
public static void main(String[] args)
Sentence test = new Sentence("The quick sly fox jumped over the lazy brown dog.");
System.out.println(test.nextWord().getWord());
System.out.println(test.nextWord().getWord());
System.out.println(test.nextWord().getWord());
System.out.println(test.nextWord().getWord());
System.out.println(test.nextWord().getWord());
}Where the main method gives us:
dog
dog
dog
dog
dogAnother thing is that for nextWord() the return type has to be Word.
Here is a link to the full lab:
http://users.dickinson.edu/~braught/courses/cs132f02/labs/lab07.html
Any help you can give would be GREATLY appreciatedPlease read the teacher's instructions again. All the information that you need to know is in there. They explicitly state: "use a StringTokenizer as part of the the instance data". Read up on what instance data means. Utilize this instruction and it should fall into place.
Edited by: petes1234 on Oct 28, 2007 8:34 AM
Maybe you are looking for
-
How do I load photos and video into existing flash
Hi, I can work with graphics and timeline keyframes but I'm generally clueless about scripting. I have a page: http://www.harmoniccycle.com/hc/swf/IMBA/pineyZ/PINEY_Z.html that I've prepared with 3 button instances in anticipation of loading either o
-
Building a mac for editing?
It is time for me to get a new computer for video editing and from what I hear it is much cheaper to buy the parts and build a computer that will end up being faster and better for video editing. At my last internship the owners built their macs for
-
I recently bought a MacBook Pro and migrated to it from my iMac using my Time Machine backup with Apple's Migration Assistant. However, I notice every time I open Mail, the Mail Upgrade window is displayed. Can anyone enlightened me to way this is? M
-
Hello. I recently installed Adobe Reader 9 on an XP SP2 workstation here. Whenever I attempt to run it, a message pops up with a fatal error "Acrobat failed to load its Core DLL". Does anyone know what this means and how to fix it? I've already tried
-
Hi, I wrote this method to evaluate an algebraic expression and return the result. In my main method I need to read in a string and then convert it into an object of type expr, can anyone help me with this? import java.util.*; public class Eval publi