# Search:

Type: Posts; User: mgutierrez19

Page 1 of 2 1

## Search: Search took 0.18 seconds.

by mgutierrez19
Replies
1
Views
3,116

### Palindrome Stacks

I am doing a program on palindrome using only stacks
my code works the only question I have is how can i run my program so that it ignores spaces and non letter symbols??
//importing packages...

by mgutierrez19
Replies
4
Views
1,027

### Re: Vectors

Its part of my assignment to use vectors so I have to use vectors or else I would use an arraylist

by mgutierrez19
Replies
4
Views
1,027

### Vectors

Can anyone at least help me and show me how to create a vector and add elements into it from an input file?

by mgutierrez19
Replies
4
Views
1,027

### Vectors

I have to create a program which reads and processes an input file with account transactions ordered by transaction date
and generates a report every time the date of the current transaction being...

by mgutierrez19
Replies
3
Views
1,233

### Re: MergeSort

correction my output when i run the program is (0,0,1,2,3,4,5,6) so it leaves out that last two integers of my array

by mgutierrez19
Replies
3
Views
1,233

### MergeSort

I am trying to implement recursive mergesort algorithm and it is almost done the only thing is that if i want to mergesort ( 7, 1 ,2, 3, 5, 6, 8, 4) when i run the program my output is (0, 0, 1, 2,...

by mgutierrez19
Replies
1
Views
1,577

### Sudoku

Can anyone help me on this??
Write the pseudocode of the algorithm that does the following:

* it takes a 9x9 matrix filled with numbers from 0 to 9: 0s stand for a missing sudoku number (a number...

by mgutierrez19
Replies
2
Views
851

### Re: OOP

I started that and thats all I have i dont know what to put in for the code.
this is the class world

import java.io.*;

public class World
{
private int size;
private Individual[][]...

by mgutierrez19
Replies
2
Views
851

### OOP

Just need help getting this class started if anyone can help me out please

• Object NaiveWorld that inherits from World:
o Attributes: no more than in the parent class World
o Methods: ...

by mgutierrez19
Replies
5
Views
2,219

### Re: 2d Arrays

Yeah but I want it to return 1 only if the pattern is found inside my array else it should return 0, my code keeps returning 1 if the first digit in the pattern is found which I dont want it to do, I...

by mgutierrez19
Replies
5
Views
2,219

### Re: 2d Arrays

I added in the for where I was missing it in my loop, but the code is still not working. it only returns 1 to me once it finds the first part of the pattern it doesnt check the pattern completely.

by mgutierrez19
Replies
5
Views
2,219

### Re: 2d Arrays

I worked on the code and I came up with this but when I run it it does not run properly because it stops checking for the other numbers once it finds the first ones.

public static int...

by mgutierrez19
Replies
5
Views
2,219

### 2d Arrays

I have to create a lab that will
Print out the input 2D-array as an image on the console screen.
• Replace 0 by “ ” {space}.
• Replace values between 1 and 99 by “.” {one dot}.
• Replace...

by mgutierrez19
Replies
1
Views
925

### 2d Array

42 0 33 67 145 41 23 7 8 255
234 0 0 157 0 0 0 0 1 5
167 0 143 0 0 0 8 1 7 255
178 2 41 0 0 0 255 1 6 6
189 3 1 0 0 0 0 0 5 8
0 0 0 93 78 1 0 157 63 143 ...
15. ## Thread: First string is a substring of another

by mgutierrez19
Replies
13
Views
3,742

### Substring

- Checks if the first string is a substring of the second one.
- Returns 0 if it is not a substring / 1 if it is / -1 if it is a “circular substring” (see example).

Example:
- abcde is a...
16. ## Thread: First string is a substring of another

by mgutierrez19
Replies
13
Views
3,742

### Re: First string is a substring of another

Thank you guys very much for all you help
17. ## Thread: User Defined Methods

by mgutierrez19
Replies
11
Views
1,466

### Re: User Defined Methods

If you can review this code please see what you think about it

public static boolean partialmatching(string str1, string str2, int N)
{
int count = 0;

for...
18. ## Thread: First string is a substring of another

by mgutierrez19
Replies
13
Views
3,742

### Re: First string is a substring of another

I know I was noticing that about the return statements also

what would be your suggestions to make sure that the program completely checks that str2 is a substring of str1
19. ## Thread: User Defined Methods

by mgutierrez19
Replies
11
Views
1,466

### Re: User Defined Methods

what do you think about this code can you look over it I think I might be done

public static boolean partialmatching(string str1, string str2, int N)
{
for (int i = 0; i < str2.length();...
20. ## Thread: User Defined Methods

by mgutierrez19
Replies
11
Views
1,466

### Re: User Defined Methods

yes the letters can be found anywhere but as long as their in consecutive order
21. ## Thread: User Defined Methods

by mgutierrez19
Replies
11
Views
1,466

### Re: User Defined Methods

okay sorry I am asking so many questions but I'm stuck on this method for the longest time i greatly appreciate the time your taking to help me

public static boolean partialmatching(string str1,...
22. ## Thread: User Defined Methods

by mgutierrez19
Replies
11
Views
1,466

### Re: User Defined Methods

inside the curlys where you put test wrap around bit in comments what did you mean by that?
23. ## Thread: First string is a substring of another

by mgutierrez19
Replies
13
Views
3,742

### Re: First string is a substring of another

public static int substring(String Str1, String Str2)
{
int return = 0
for(int i = 0; i < Str2.length(); i++)
{
if (Str2.charAt(i) == Str1.charAt(0))
for(int j =0; j <...
24. ## Thread: User Defined Methods

by mgutierrez19
Replies
11
Views
1,466

### Re: User Defined Methods

an algorithm would be nice cause i have this so far

public static boolean partialmatching(string str1, string str2, Int N)
{
int count = 0
for (int i = 0; i < Str1.length(); i++)
{
...
25. ## Thread: First string is a substring of another

by mgutierrez19
Replies
13
Views
3,742

### First string is a substring of another

I need to write a User Defined Method which
Checks if the first string is a substring of the second one.
- Returns 0 if it is not a substring / 1 if it is / -1 if it is a “circular substring” ...
Results 1 to 25 of 26
Page 1 of 2 1