Search Results

Search found 33 results on 2 pages for 'fraz sundal'.

Page 2/2 | < Previous Page | 1 2 

  • In Java, how do you parse through a single word string?

    - by Fraz
    I'm trying to parse though a string made up of a single word. How would you go about assigning the last letter of the word to a variable? I was thinking of using the Scanner class to parse the word and make each letter an element in an array but it seems Scanner.next() only goes through whole words and not the individual letters. Any help?

    Read the article

  • Problem with ajax request in Asp.Net MVC 2

    - by Fraz Sundal
    I have implemented ajax on paging but my problem is when i navigate on paging and go to page 1 then on page 2 after that if i press backspace it went to the last page from where it comes instead of going to page 1. I want to know how should i implement paging like stackoverflow have. Further i have noticed that my url doesnt change on paging it remains like Home/Index when im on 1st page or 2nd page or any other page?

    Read the article

  • Best way to design a class in python

    - by Fraz
    So, this is more like a philosophical question for someone who is trying to understand classes. Most of time, how i use class is actually a very bad way to use it. I think of a lot of functions and after a time just indent the code and makes it a class and replacing few stuff with self.variable if a variable is repeated a lot. (I know its bad practise) But anyways... What i am asking is: class FooBar: def __init__(self,foo,bar): self._foo = foo self._bar = bar self.ans = self.__execute() def __execute(self): return something(self._foo, self._bar) Now there are many ways to do this: class FooBar: def __init__(self,foo): self._foo = foo def execute(self,bar): return something(self._foo, bar) Can you suggest which one is bad and which one is worse? or any other way to do this. This is just a toy example (offcourse). I mean, there is no need to have a class here if there is one function.. but lets say in __execute something() calls a whole set of other methods.. ?? Thanks

    Read the article

< Previous Page | 1 2